private void ReceiveData() { string log = File.ReadAllText(person.FilePath); if (log.StartsWith("1")) { windowT1.Show(); } else if (log.StartsWith("2")) { windowT2.Show(); } else if (log.StartsWith("3")) { windowT3.Show(); } else if (log.StartsWith("4")) { windowT4.Show(); } else if (log.StartsWith("5")) { windowT5.Show(); } this.Visibility = Visibility.Hidden; }
private void BtnT3_Click(object sender, RoutedEventArgs e) { WindowT3 window = new WindowT3(); this.Close(); window.Show(); }