private void folderPathToolStripMenuItem_Click(object sender, EventArgs e) { PopUpFilePath popUp = new PopUpFilePath(); popUp.Show(); this.Close(); }
public Loading() { InitializeComponent(); bool pathFound = false; string settingsPath = "Settings.txt"; if (!File.Exists(settingsPath)) { File.Create(settingsPath); } string[] pathFile = File.ReadAllLines(settingsPath); if (pathFile[0].Length <= 6) { PopUpFilePath popUp = new PopUpFilePath(); popUp.Show(); } else { Form1 form = new Form1(); form.Show(); } }