Ejemplo n.º 1
0
        public MainForm(bool isDataBaseValide)
        {
            InitializeComponent();

            if (!isDataBaseValide)
            {
                var form = new FormConfiguration();
                form.StartPosition = FormStartPosition.CenterScreen;
                form.ShowInTaskbar = true;
                form.TopMost = true;
                form.FirstStart = true;
                form.CloseConfigurationForm += CloseConfigurationForm;
                form.LoadAll();
                form.ShowDialog();

                AfficherAjoutCommande();
            }
            else
            {
                AfficherAjoutCommande();
            }

            toolStripStatusLabel1.Text = string.Format("Base de données crée le : {0}", GestionParametre.Instance.DataBaseCreationDate);
            this.Text = this.Text + " " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }
Ejemplo n.º 2
0
        private void mnuReset_Click(object sender, EventArgs e)
        {
            var form = new FormConfiguration();
            form.FirstStart = false;
            form.LoadAll();
            form.ShowDialog();

            AfficherAjoutCommande();
        }