public Customer_menu()
 {
     InitializeComponent();
     indi.Height = menu_btn1.Height;
     indi.Top    = menu_btn1.Top;
     fs          = new Food_services();
 }
示例#2
0
 public User_menu()
 {
     InitializeComponent();
     af = new Add_food();
     fs = new Food_services();
     Loadall();
 }
示例#3
0
 public Add_food()
 {
     InitializeComponent();
     fs = new Food_services();
     add_ing1.Visible  = false;
     chkbox            = new DataGridViewCheckBoxColumn();
     chkbox.HeaderText = "";
     chkbox.Width      = 30;
     chkbox.Name       = "chkcolum";
     submit_btn.BringToFront();
 }
示例#4
0
 public Add_food(int id)
 {
     InitializeComponent();
     fs = new Food_services();
     add_ing1.Visible  = false;
     chkbox            = new DataGridViewCheckBoxColumn();
     chkbox.HeaderText = "";
     chkbox.Width      = 30;
     chkbox.Name       = "chkcolum";
     id_for_update     = id;
     Getalldata_for_update(id_for_update);
     Update_btn.BringToFront();
     open = new OpenFileDialog();
 }
示例#5
0
        public Menu_infocs(string food_name, string food_price, string food_des, List <Ing> ings, int food_id)
        {
            InitializeComponent();
            fs = new Food_services();
            quantity_lbl.Text   = counter.ToString();
            this.food_id        = food_id;
            food_name_lbl.Text  = food_name;
            food_price_lbl.Text = food_price;
            new_price           = Convert.ToInt32(food_price.Remove(food_price.Length - 1, 1));
            main_price          = new_price;
            food_info_lbl.Text  = food_des;

            for (int i = 0; i < ings.Count; i++)
            {
                box = new User_controll.Ing_box();
                box.checkBox1.Text = ings[i].Ing_name;
                box.label1.Text    = ings[i].ing_price.ToString();
                exrta_in_panel.Controls.Add(box);
                box.Click += new EventHandler(this.Checkbox_click);
            }
        }
示例#6
0
 public Menu_infocs()
 {
     InitializeComponent();
     quantity_lbl.Text = counter.ToString();
     fs = new Food_services();
 }
示例#7
0
 public Chef_ui()
 {
     InitializeComponent();
     fs = new Food_services();
 }
示例#8
0
 public add_ing()
 {
     InitializeComponent();
     fs = new Food_services();
 }
示例#9
0
 public Menu_changer(int id)
 {
     fs      = new Food_services();
     this.id = id;
     InitializeComponent();
 }
示例#10
0
 public Menu_changer()
 {
     InitializeComponent();
     fs      = new Food_services();
     this.id = 1;
 }