コード例 #1
0
        private void mnuProperties_Click(object sender, EventArgs e)
        {
            if (lstChats.SelectedItem != null)
            {
                ChatListItem itm       = lstChats.SelectedItem as ChatListItem;
                BitChatPanel chatPanel = itm.Tag as BitChatPanel;

                using (frmChatProperties frm = new frmChatProperties(chatPanel.BitChat))
                {
                    frm.Text = chatPanel.BitChat.NetworkName + " - Properties";
                    frm.ShowDialog(this);
                }
            }
        }
コード例 #2
0
        private void mnuProperties_Click(object sender, EventArgs e)
        {
            if (lstChats.SelectedItem != null)
            {
                ChatListItem itm = lstChats.SelectedItem as ChatListItem;

                using (frmChatProperties frm = new frmChatProperties(itm.BitChat, _profile))
                {
                    if (frm.ShowDialog(this) == DialogResult.OK)
                    {
                        try
                        {
                            itm.BitChat.SharedSecret = frm.SharedSecret;
                        }
                        catch (Exception ex)
                        {
                            MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        }
                    }
                }
            }
        }
コード例 #3
0
ファイル: frmMain.cs プロジェクト: rodoviario/BitChatClient
        private void mnuProperties_Click(object sender, EventArgs e)
        {
            if (lstChats.SelectedItem != null)
            {
                ChatListItem itm = lstChats.SelectedItem as ChatListItem;
                BitChatPanel chatPanel = itm.Tag as BitChatPanel;

                using (frmChatProperties frm = new frmChatProperties(chatPanel.BitChat))
                {
                    frm.Text = chatPanel.BitChat.NetworkName + " - Properties";
                    frm.ShowDialog(this);
                }
            }
        }