Exemple #1
0
        public Form1()
        {
            InitializeComponent();
            panels.Add(panel_login, tableLayoutPanel_login);
            panels.Add(panel_main, tableLayoutPanel_main);

            WarehouseService.CreateDbIfNotExists();

            loggedInUser = WarehouseService.GetLoggedInUser();
            if (loggedInUser != null)
            {
                FocusMainPanel();
            }
            else
            {
                FocusLoginPanel();
            }
        }