private void tSSL_User_Click(object sender, EventArgs e) { try { idocEmployee emp = new idocEmployee(Program.UserContext.Key, Client); emp.Show(); } catch { } }
public override void OnDoubleClick(SourceGrid.CellContext sender, EventArgs e) { if (sender.Position.Row > 0) { SourceGridUtilities.RowTag rt = (SourceGridUtilities.RowTag)Grid.Rows[sender.Position.Row].Tag; idocEmployee Customer = new idocEmployee(rt.Key.ToString(), Client); Customer.Show(); } }
private void toolStripButton_New_Click(object sender, EventArgs e) { switch (tabList1.SelectedPage.Text) { case "Замовлення": idocWindowOrder Order = new idocWindowOrder(Client); Order.Show(); break; case "Клієнти": idocCustomer Customer = new idocCustomer(Client); Customer.Show(); break; case "Співробітники": idocEmployee Employee = new idocEmployee(Client); Employee.Show(); break; } }