private void Form2_Load(object sender, EventArgs e) { if (Properties.Settings.Default.Author == "") { using (AuthorForm fa = new AuthorForm()) { DialogResult res = fa.ShowDialog(this); if (res != DialogResult.OK) { this.Close(); } } } setUserLabel(); resetRLT(); Console.WriteLine(Properties.Settings.Default.LastPath + " " + File.Exists(Properties.Settings.Default.LastPath)); if (Properties.Settings.Default.LastPath != "" && Directory.Exists(Properties.Settings.Default.LastPath)) { open(Properties.Settings.Default.LastPath); } }
// menustrip --> Other --> Change Author... - Apre il dialog di cambio autore private void changeAuthorToolStripMenuItem_Click(object sender, EventArgs e) { using (AuthorForm fa = new AuthorForm()) fa.ShowDialog(); setUserLabel(); }