private void Full_Screen_Click(object sender, RoutedEventArgs e) { bool auto_Start = false; string path1 = @"Temp1.txt"; if (zellElement) { if (autoStart) { auto_Start = true; autoStart = false; } ZubauZelleClass1.Speichern_(path1, this); Contrrol.DoFullScreen(this); ZubauZelleClass1.DateiHochLaden(path1, this, 2); if (auto_Start) { autoStart = true; Start_Automatic(); } } else { Contrrol.DoFullScreen(this); } }
private void Speichern_Click(object sender, RoutedEventArgs e) { if (zellElement) { autoStart = false; Auto_Start.Content = "Starte"; SaveFileDialog path = new SaveFileDialog(); path.Filter = "txt file|*.txt"; path.ShowDialog(); if (path.FileName != "") { ZubauZelleClass1.Speichern_(path.FileName, this); } } }