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 Upload_Click(object sender, RoutedEventArgs e) { autoStart = false; Auto_Start.Content = "Starte"; OpenFileDialog path = new OpenFileDialog(); path.Filter = "txt file|*.txt"; Nullable <bool> result = path.ShowDialog(); if (result == true) { ZubauZelleClass1.DateiHochLaden(path.FileName, this, 1); } }
private void Zellbau_Click(object sender, RoutedEventArgs e) { int spalteZähler, reiheZähler; spalteZähler = IstNummer(Spalte.Text); reiheZähler = IstNummer(Reihen.Text); if ((spalteZähler != 0) && (reiheZähler != 0)) { autoStart = false; Auto_Start.Content = "Starte"; ZubauZelleClass1 neuZell = new ZubauZelleClass1(reiheZähler, spalteZähler); string path = ""; ZubauZelleClass1.DateiHochLaden(path, this, 0); } }