private void memberToolStripMenuItem_Click(object sender, EventArgs e) { ucDetialsMember ucdm = new ucDetialsMember(); ucdm.setMainWindowRefrence(this); Window_Popup_Details pd = new Window_Popup_Details(ucdm); ucdm.setParentWindowRefrence(pd); pd.ShowDialog(); }
private void dgvMembersList_CellClick(object sender, DataGridViewCellEventArgs e) { DataGridView dgv = sender as DataGridView; if (dgv == null) { return; } if (dgv.CurrentRow.Selected) { int member_id = Convert.ToInt32(dgv.SelectedRows[0].Cells["MemberID"].Value); ucDetialsMember ucdm = new ucDetialsMember(member_id); ucdm.setMainWindowRefrence(MainWindowObject); Window_Popup_Details pd = new Window_Popup_Details(ucdm); ucdm.setParentWindowRefrence(pd); pd.ShowDialog(); } }