Example #1
0
        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;
        }
Example #2
0
        private void BtnT5_Click(object sender, RoutedEventArgs e)
        {
            WindowT5 window = new WindowT5();

            this.Close();
            window.Show();
        }