Esempio n. 1
0
 private void mnuViewProfile_Click(object sender, EventArgs e)
 {
     using (frmViewProfile frm = new frmViewProfile(_profile, null))
     {
         if (frm.ShowDialog(this) == DialogResult.OK)
         {
             SaveProfile();
         }
     }
 }
Esempio n. 2
0
        private void mnuViewPeerProfile_Click(object sender, EventArgs e)
        {
            if (lstChats.SelectedItem != null)
            {
                ChatListItem itm = lstChats.SelectedItem as ChatListItem;

                using (frmViewProfile frm = new frmViewProfile(_profile, itm.Peer))
                {
                    frm.ShowDialog(this);
                }
            }
        }