示例#1
0
        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();
            }
        }
示例#2
0
 private void buttonChooseSaveDirectory_Click(object sender, EventArgs e)
 {
     if (folderBrowserDialogSaveDirectory.ShowDialog() == DialogResult.OK)
     {
         Variablen.SavePath                 = folderBrowserDialogSaveDirectory.SelectedPath;
         Label_Speicherort.Text             = "Verzeichnis: " + Variablen.SavePath + @"\";
         Label_Speicherort.Location         = new Point(path_Label.X - Label_Speicherort.Size.Width, Label_Speicherort.Location.Y);
         buttonChooseSaveDirectory.Location = new Point(Label_Speicherort.Location.X - buttonChooseSaveDirectory.Width - 10, buttonChooseSaveDirectory.Location.Y);
         Label_noDirectory.Hide();
     }
 }
示例#3
0
 private void SetLabel()
 {
     Label_Willkommen.Show();
     Label_Verzeichnis.Hide();
     Label_Speicherort.Hide();
     buttonChooseDirectory.Hide();
     buttonChooseSaveDirectory.Hide();
     Label_noDirectory.Hide();
     Bilder_Anzeige.Hide();
     Button_Start.Show();
     Tool_Panel.Hide();
     Image_Preview.Hide();
 }
示例#4
0
        private void StartSave()
        {
            if (Variablen.SavePath != null)
            {
                Save();
            }
            else
            {
                if (folderBrowserDialogSaveDirectory.ShowDialog() == DialogResult.OK)
                {
                    Variablen.SavePath         = folderBrowserDialogSaveDirectory.SelectedPath;
                    Variablen.SavePath         = folderBrowserDialogSaveDirectory.SelectedPath;
                    Label_Speicherort.Text     = "Verzeichnis: " + Variablen.SavePath + @"\";
                    Label_Speicherort.Location = new Point(path_Label.X - Label_Speicherort.Size.Width, Label_Speicherort.Location.Y);

                    buttonChooseSaveDirectory.Location = new Point(Label_Speicherort.Location.X - buttonChooseSaveDirectory.Width - 10, buttonChooseSaveDirectory.Location.Y);
                    Label_noDirectory.Hide();
                    Label_Speicherort.Text = "Verzeichnis: " + Variablen.SavePath + @"\";

                    Save();
                }
            }
        }