コード例 #1
0
        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);
            }
        }
コード例 #2
0
 // 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();
 }