Exemple #1
0
 private void OpenToolStripMenuItemClick(object sender, EventArgs e)
 {
     OpenProjectForm form = new OpenProjectForm();
     DialogResult result = form.ShowDialog();
     if (result == DialogResult.OK) ReloadProject();
 }
Exemple #2
0
        private void OpenProject()
        {
            string con = Settings.Default.ConnectionString;
            if (!Project.Open(con))
            {
                OpenProjectForm form = new OpenProjectForm();
                DialogResult result = form.ShowDialog(this);
                if (result != DialogResult.OK) return;
            }

            ReloadProject();
        }