Exemple #1
0
 public LedenScherm(KassaApp app)
 {
     InitializeComponent();
     App = app;
     UpdateLedenlijst();
     SetButtonsForBestuur(App.GetIsGemachtigd());
 }
Exemple #2
0
 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);
 }
Exemple #4
0
        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;
            }
        }