Beispiel #1
0
 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;
         idocCustomer Customer         = new idocCustomer(rt.Key.ToString(), Client);
         Customer.Show();
     }
 }
Beispiel #2
0
        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;
            }
        }