当前位置: 首页>>代码示例>>C#>>正文


C# SktSkype.LaunchRuntime方法代码示例

本文整理汇总了C#中SkypeKit.SktSkype.LaunchRuntime方法的典型用法代码示例。如果您正苦于以下问题:C# SktSkype.LaunchRuntime方法的具体用法?C# SktSkype.LaunchRuntime怎么用?C# SktSkype.LaunchRuntime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SkypeKit.SktSkype的用法示例。


在下文中一共展示了SktSkype.LaunchRuntime方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NewContacts

        public NewContacts()
        {
            InitializeComponent();
            feedbackLabel.Text = "";

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            skype.NewContact = (oid, skp) => { return new MyContact(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnContactGroupChange += OnContactGroupChange;

            skype.events.OnContactSearchContactSearchStatus += OnContactSearchContactSearchStatus;
            skype.events.OnContactSearchNewResult += OnContactSearchNewResult;

            // Adding enter key to execute search for all the input lines
            skypeNameTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(SearchFieldKeyDown);
            fullNameTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(SearchFieldKeyDown);
            emailTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(SearchFieldKeyDown);

            this.FormClosing += Form1_FormClosing;
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "");

            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:33,代码来源:NewContacts.cs

示例2: Form1

        public Form1()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, false, false, 8963);

            // Registration of our MyConversation class
            skype.NewConversation = (oid, skp) => { return new MyConversation(oid, skp); };

            // skype callbacks
            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            // other necessary callbacks
            conversationListBox.SelectedIndexChanged += listBox1_SelectedIndexChanged;
            this.FormClosing += Form1_FormClosing;

            // this will cause OnConnect to fire, some time later..
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "-d timezone");
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:29,代码来源:Conversations.cs

示例3: Form1

        public Form1()
        {
            InitializeComponent();
            LoadIcons();
            videoDeviceSelector.Enabled = false;

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            // Note that MakeVideoRendererControl uses our skype field.
            // Thus it needs come after constructing skype.
            MakeVideoRendererControl();

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnSkypeAvailableVideoDeviceListChange += OnSkypeAvailableVideoDeviceListChange;

            this.FormClosing += Form1_FormClosing;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:28,代码来源:VideoPreview.cs

示例4: PublicChatBlobs

        public PublicChatBlobs()
        {
            InitializeComponent();
            feedbackLabel.Text = "";

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            this.FormClosing += Form1_FormClosing;
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "");

            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:22,代码来源:PublicChatBlobs.cs

示例5: Form1

        public Form1()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, true, true, 8963);
            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            this.FormClosing += Form1_FormClosing;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "-x");

            // Once connection happens, OnConnect will fire
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:23,代码来源:Login.cs

示例6: Form1

        public Form1()
        {
            InitializeComponent();
            LoadImages();
            UiToWaitingMode();
            this.AcceptButton = sendButton;

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, true, false, 8963);

            skype.NewVideo = (oid, skp) => { return new Video(oid, skp); };
            skype.NewParticipant = (oid, skp) => { return new Participant(oid, skp); };
            skype.NewConversation = (oid, skp) => { return new Conversation(oid, skp); };
            skype.NewMessage = (oid, skp) => { return new Message(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnParticipantSoundLevel += OnParticipantSoundLevel;
            skype.events.OnParticipantVoiceStatus += OnParticipantVoiceStatus;
            skype.events.OnSkypeMessage += OnSkypeMessage;
            skype.events.OnConversationLocalLivestatus += OnConversationLocalLiveStatus;
            skype.events.OnConversationSpawnConference += OnConversationSpawnConference;
            skype.events.OnSkypeConversationListChange += OnSkypeConversationListChange;
            skype.events.OnSkypeAvailableDeviceListChange += OnSkypeAvailableDeviceListChange;
            skype.events.OnSkypeAvailableVideoDeviceListChange += OnSkypeAvailableVideoDeviceListChange;
            skype.events.OnParticipantVideoStatus += OnParticipantVideoStatus;
            skype.events.OnVideoStatus += OnVideoStatus;

            convListBox.SelectedIndexChanged += listBox1_SelectedIndexChanged;
            this.FormClosing += Form1_FormClosing;
            sendButton.Click += sendButton_Click;
            callButton.Click += callButton_Click;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();

            convUpdateTimer = new System.Windows.Forms.Timer();
            convUpdateTimer.Interval = 300;
            convUpdateTimer.Tick += OnDelayedUpdate;

            //tutorials_common.tutorials.ShowLogWindow(this, skype);
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:48,代码来源:VideoCalls.cs

示例7: Form1

        public Form1()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, false, false, 8963);

            skype.NewConversation   = (oid, skp) => { return new Conversation(oid, skp); };
            skype.NewMessage        = (oid, skp) => { return new Message(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnSkypeMessage += OnSkypeMessage;
            skype.events.OnSkypeConversationListChange += OnSkypeConversationListChange;

            skype.events.OnParticipantTextStatus += OnParticipantTextStatus;

            conversationListBox.SelectedIndexChanged += listBox1_SelectedIndexChanged;
            conversationListBox.MouseDoubleClick += conversationListBox_MouseDoubleClick;

            this.FormClosing += Form1_FormClosing;

            this.AcceptButton = sendButton;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:34,代码来源:Chat.cs

示例8: Datagrams

        string streamName = ""; // A stream ID is used for sending messages A stream name

        #endregion Fields

        #region Constructors

        public Datagrams()
        {
            InitializeComponent();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            skype.NewContact = (oid, skp) => { return new MyContact(oid, skp); };

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;

            skype.events.OnContactGroupChange += OnContactGroupChange;

            skype.events.OnSkypeApp2AppStreamListChange += OnSkypeApp2AppStreamListChange;
            skype.events.OnSkypeApp2AppDatagram += OnSkypeApp2AppDatagram;

            this.FormClosing += Form1_FormClosing;
            this.msgEdit.KeyDown += new System.Windows.Forms.KeyEventHandler(editKeyDown);

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true, "");
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:35,代码来源:Datagrams.cs

示例9: Form1

        public Form1()
        {
            InitializeComponent();
            loginFeedback.Text = "";

            LoadPresenceIcons();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }

            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);
            skype = new SktSkype(this, cert, false, false, 8963);

            skype.events.OnConnect += OnConnect;
            skype.events.OnAccountStatus += OnAccountStatus;
            skype.events.OnContactAvailability += OnContactAvailability;
            skype.events.OnContactMoodText += OnContactMoodText;
            skype.events.OnContactLastonlineTimestamp += OnContactLastOnlineTimestamp;
            skype.events.OnContactGroupChange += OnContactGroupChange;

            contactListBox.SelectedIndexChanged += contactListBox_SelectedIndexChanged;
            contactListBox.DrawItem += contactListBox_DrawItem;

            this.FormClosing += Form1_FormClosing;

            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);

            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:32,代码来源:Contacts.cs

示例10: Form1

        public Form1()
        {
            InitializeComponent();
            LoadCallIcons();
            callTimer = new Timer();
            callTimer.Interval = 1000;
            callTimer.Tick += OnCallDurationUpdate;
            participants = new SktParticipant.List();
            UiToWaitingMode();

            if (!System.IO.File.Exists(tutorials.path + tutorials.keyfilename))
            {
                throw new Exception(String.Format(
                    "The keyfile (.pfx) path or filename {0} is incorrect?", tutorials.path + tutorials.keyfilename));
            }
            X509Certificate2 cert = new X509Certificate2(tutorials.path + tutorials.keyfilename, tutorials.keypassword);

            skype = new SktSkype(this, cert, false, false, 8963);

            skype.events.OnParticipantSoundLevel        += OnParticipantSoundLevel;
            skype.events.OnParticipantVoiceStatus       += OnParticipantVoiceStatus;
            skype.events.OnSkypeMessage                 += OnSkypeMessage;
            skype.events.OnConversationLocalLivestatus  += OnConversationLocalLiveStatus;
            skype.events.OnConversationSpawnConference  += OnConversationSpawnConference;

            skype.events.OnConnect                      += OnConnect;
            skype.events.OnAccountStatus                += OnAccountStatus;

            skype.NewParticipant = (oid, skp) => { return new Participant(oid, skp); };

            this.FormClosing += Form1_FormClosing;
            skype.LaunchRuntime(tutorials.path + tutorials.runtime, true);
            skype.Connect();
        }
开发者ID:nosilence,项目名称:jira-skype-app,代码行数:34,代码来源:IncomingCalls.cs


注:本文中的SkypeKit.SktSkype.LaunchRuntime方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。