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 BtnT4_Click(object sender, RoutedEventArgs e) { WindowT4 window = new WindowT4(); this.Close(); window.Show(); }