public LedenScherm(KassaApp app) { InitializeComponent(); App = app; UpdateLedenlijst(); SetButtonsForBestuur(App.GetIsGemachtigd()); }
public VoorraadScherm(KassaApp app) { InitializeComponent(); App = app; Width = 719; SetAble(App.GetIsGemachtigd()); RefreshGegevens(); }
public ProductenScherm(KassaApp app, Bestelling bestelling) { InitializeComponent(); App = app; if (App.GetIsGemachtigd()) { if (bestelling == null) { btRemove.Enabled = true; } else { btRemove.Enabled = false; } } UpdateProducten(bestelling); }
private void CheckBestuur() { bool gemachtigd = false; if (_app.Authentication != null) { gemachtigd = _app.GetIsGemachtigd(); } if (gemachtigd) { Height = 550; btBestuurAfrekenen.Visible = gemachtigd; tbOpmerking.Visible = gemachtigd; lbOpmerking.Visible = gemachtigd; } else { Height = 465; btBestuurAfrekenen.Visible = gemachtigd; tbOpmerking.Visible = gemachtigd; lbOpmerking.Visible = gemachtigd; } }