Example #1
0
 public AddStaff()
 {
     InitializeComponent();
     if (context == null)
     {
         context = new GyroDB();
     }
 }
Example #2
0
 public EditStaff()
 {
     if (context == null)
     {
         context = new GyroDB();
     }
     InitializeComponent();
 }
Example #3
0
 public Login()
 {
     //SfSkinManager.ApplyStylesOnApplication = true;
     //SfSkinManager.SetTheme(this, new Theme("FluentDark"));
     InitializeComponent();
     if (context == null)
     {
         context = new GyroDB();
     }
 }
 private void initialiseStaff()
 {
     if (myStackPanel != null)
     {
         context = new GyroDB();
         var staff = context.staffs.Where(e => e.isActive == 1).ToList();;
         myStackPanel.Children.Clear();
         myStackPanel.Children.Add(createPlus());
         foreach (var s in staff)
         {
             Grid g = createGrid(s.username);
             myStackPanel.Children.Add(g);
         }
     }
 }
Example #5
0
        //DrinkPage drinkPage = new DrinkPage();
        //SidePage sidePage = new SidePage();
        //SizePage sizePage = new SizePage();
        //TypePage typePage = new TypePage();


        public Dashboard()
        {
            InitializeComponent();



            if (context == null)
            {
                context = new GyroDB();
            }
            initializeStackPanel();



            mainFrame.Source = typePage;
        }
        public AdminPanel()
        {
            if (context == null)
            {
                context = new GyroDB();
            }



            SideCollection  = new SeriesCollection();
            TypeCollection  = new SeriesCollection();
            SizeCollection  = new SeriesCollection();
            DrinkCollection = new SeriesCollection();


            InitializeComponent();
            initializeType();
            initialiseSize();
            initialiseSides();
            initialiseDrinks();
            initialiseStaff();

            // DataContext = this;
        }