コード例 #1
0
 public BarUI(Employee employee)
 {
     this.employee = employee;
     InitializeComponent();
     //Loads orders and hides mark ready button
     btn_markReady1.Hide();
     btn_OrderOverview.Hide();
     LvHistory.Hide();
     OrdersAll();
 }
コード例 #2
0
ファイル: KitchenUI.cs プロジェクト: Lidda/project---p4
 public KitchenUI(Employee employee)
 {
     this.employee = employee;
     InitializeComponent();
     //Loads orders and hides buttons and history listview
     btn_markReady1.Hide();
     btn_OrderOverview.Hide();
     LvHistory.Hide();
     OrdersAll();
 }
コード例 #3
0
 private void btn_OrderOverview_Click(object sender, EventArgs e)
 {
     //Hides and shows all relevant buttons and listviews
     btn_OrderOverview.Hide();
     LvHistory.Hide();
     LvOverview.Show();
     btn_OrderHistory.Show();
     btn_FilterNew.Show();
     //Only show button if overview listview has items
     if (LvOverview.Items.Count > 0)
     {
         btn_markReady1.Show();
     }
 }