예제 #1
0
        private void mnuAddGroupChat_Click(object sender, EventArgs e)
        {
            using (frmAddChat frmCreateChat = new frmAddChat())
            {
                if (frmCreateChat.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                {
                    BitChat chat = _service.CreateBitChat(frmCreateChat.txtNetworkNameOrPeerEmailAddress.Text, frmCreateChat.txtPassword.Text);

                    AddChatView(chat);
                }
            }
        }
예제 #2
0
        private void mnuAddPrivateChat_Click(object sender, EventArgs e)
        {
            using (frmAddChat frmCreateChat = new frmAddChat(BitChatClient.Network.BitChatNetworkType.PrivateChat))
            {
                if (frmCreateChat.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                {
                    BitChat chat = _service.CreateBitChat(new System.Net.Mail.MailAddress(frmCreateChat.txtNetworkNameOrPeerEmailAddress.Text.ToLower()), frmCreateChat.txtPassword.Text);

                    AddChatView(chat);
                }
            }
        }
예제 #3
0
        private void mnuAddPrivateChat_Click(object sender, EventArgs e)
        {
            using (frmAddChat frmCreateChat = new frmAddChat(BitChatClient.Network.BitChatNetworkType.PrivateChat))
            {
                if (frmCreateChat.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                {
                    BitChat chat = _service.CreateBitChat(new System.Net.Mail.MailAddress(frmCreateChat.txtNetworkNameOrPeerEmailAddress.Text.ToLower()), frmCreateChat.txtPassword.Text);

                    AddChatView(chat);
                }
            }
        }
예제 #4
0
        private void mnuAddGroupChat_Click(object sender, EventArgs e)
        {
            using (frmAddChat frmCreateChat = new frmAddChat())
            {
                if (frmCreateChat.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                {
                    BitChat chat = _service.CreateBitChat(frmCreateChat.txtNetworkNameOrPeerEmailAddress.Text, frmCreateChat.txtPassword.Text);

                    AddChatView(chat);
                }
            }
        }