private void gvContacts_CellClick(object sender, DataGridViewCellEventArgs e) { pop = new frmPopup(Module, gvContacts.Rows[e.RowIndex].Tag as ContactItem, mode.edit); pop.Text = "Edit event"; pop.ClosePop += new OnPopClose(Close_Pop); pop.ShowDialog(); }
private void tsNew_Click(object sender, EventArgs e) { ContactItem Contact = new ContactItem(); Contact.Customers_Nas = Customer.NAS; pop = new frmPopup(Module, Contact, mode.newitem); pop.Text = "New event"; pop.ClosePop += new OnPopClose(Close_Pop); pop.ShowDialog(); }