示例#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();
        }
示例#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();
 }
示例#3
0
        public void filtering()
        {
            foreach (Goods i in allGoods)
            {
                bool res = true;
                foreach (Filter j in FilterCol.filtres)
                {
                    if (!(res = j.check(i)))
                    {
                        break;
                    }
                }
                if (res)
                {
                    filtrationGoods.addGoods(i);
                }
            }

            GoodsForm.ShowFiltrGoods(GoodsFilter.filtrGoods);
        }