Exemple #1
0
 private void dgOtherUsers_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         long          otherUserId = Convert.ToInt32(dgOtherUsers.SelectedCells[0].Value.ToString());
         ucBrowseUsers otherUser   = new ucBrowseUsers(otherUserId);
         mParent.ChangeSubForm(otherUser);
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message);
     }
 }
Exemple #2
0
        private void lstFriends_DoubleClick(object sender, EventArgs e)
        {
            ucBrowseUsers mBrowseUsers = new ucBrowseUsers((long)lstFriends.SelectedValue);

            mParent.ChangeSubForm(mBrowseUsers);
        }