private void Button_Directory_Click(object sender, EventArgs e) { if (Image_Directionary.ShowDialog() == DialogResult.OK) { Variablen.path = Image_Directionary.SelectedPath; Label_Willkommen.Hide(); Label_Verzeichnis.Text = "Verzeichnis: " + Variablen.path + @"\"; Label_Verzeichnis.Location = new Point(path_Label.X - Label_Verzeichnis.Size.Width, Label_Verzeichnis.Location.Y); Label_Verzeichnis.Show(); Label_Speicherort.Text = "Speicherort: Kein Verzeichnis ausgewählt"; Label_Speicherort.Location = new Point(path_Label.X - Label_Speicherort.Size.Width, Label_Speicherort.Location.Y); Label_Speicherort.Show(); buttonChooseDirectory.Location = new Point(Label_Verzeichnis.Location.X - buttonChooseDirectory.Size.Width - 5, buttonChooseDirectory.Location.Y); buttonChooseDirectory.Show(); buttonChooseSaveDirectory.Location = new Point(Label_Speicherort.Location.X - buttonChooseSaveDirectory.Size.Width - 5, buttonChooseSaveDirectory.Location.Y); buttonChooseSaveDirectory.Show(); Label_noDirectory.Location = new Point(path_Label.X - Label_noDirectory.Size.Width, Label_noDirectory.Location.Y); Label_noDirectory.Show(); groupBoxSpeichergröße.Show(); Bilder_Anzeige.Show(); Button_Start.Hide(); RefreshImages(); Tool_Panel.Show(); Image_Preview.Show(); } }
private void Button_Start_Click(object sender, EventArgs e) { Button_Start.Hide(); Button_Exit.Hide(); Game.game.ShowDialog(); }