public BarUI(Employee employee) { this.employee = employee; InitializeComponent(); //Loads orders and hides mark ready button btn_markReady1.Hide(); btn_OrderOverview.Hide(); LvHistory.Hide(); OrdersAll(); }
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(); }
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(); } }