Exemplo n.º 1
0
        private void Odrers_Click(object sender, EventArgs e)
        {
            form_orders = new OrdersForm();
            form_orders.Show();
            if (form_managers == null)
            {
                form_managers = new managers();
                Shop.managers.openData();
            }
            if (form_clients == null)
            {
                form_clients = new Clients();
                Shop.Clients.openData();
            }
            if (form_goods == null)
            {
                form_goods = new GoodsForm();
                if (form_typegoods == null)
                {
                    form_typegoods = new TypeGoodsForm();
                    TypeGoodsForm.openData();
                }

                GoodsForm.openData();
            }

            OrdersForm.openData();
        }
Exemplo n.º 2
0
 private void Goods_Click(object sender, EventArgs e)
 {
     form_goods = new GoodsForm();
     form_goods.Show();
     if (form_clients == null)
     {
         form_clients = new Clients();
         Shop.Clients.openData();
     }
     GoodsForm.openData();
 }