Exemplo n.º 1
0
        private void HomeForm_Load(object sender, EventArgs e)
        {
            if (!als.CheckActivation())
            {
                Application.Exit();
                return;
            }

            // On vérifie si l'app est lié à un magasin

            if (Properties.Settings.Default.CurrentStore == null)
            {
                if (new StorePicker().ShowDialog() != DialogResult.OK)
                {
                    Application.Exit();
                    return;
                }
            }

            if (Properties.Settings.Default.CurrentStore == null)
            {
                Application.Exit();
                return;
            }

            this.magasin.Text = Properties.Settings.Default.CurrentStore.Name;

            //Gère la connexion
            DoLogin();
        }