Exemple #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);
                }
            }
        }
Exemple #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);
                        }
                    }
                }
            }
        }
Exemple #3
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);
                }
            }
        }