Пример #1
0
 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();
 }
Пример #2
0
        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();
        }