コード例 #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;
        }
コード例 #2
0
        private void BtnT3_Click(object sender, RoutedEventArgs e)
        {
            WindowT3 window = new WindowT3();

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