コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: ellil4/PCAT
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                switch (mVersion)
                {
                case PCATData.VERSION.CLIENT:
                    this.Visibility = System.Windows.Visibility.Hidden;
                    FiveElementsIntTest.MainWindow mw =
                        new FiveElementsIntTest.MainWindow(
                            Query.TestConfig.GetTestArrayFromFile(), mVersion);
                    mw.ShowDialog();
                    this.Close();
                    break;

                case PCATData.VERSION.MANAGER:
                    this.Visibility = System.Windows.Visibility.Hidden;
                    (new Query.MainWindow(mVersion)).ShowDialog();
                    this.Close();
                    break;
                }
            }
            catch (Exception ex)
            {
                StreamWriter sw = new StreamWriter(FiveElementsIntTest.FEITStandard.GetExePath() + "exception.txt");
                sw.WriteLine(ex.Message);
                sw.WriteLine(ex.StackTrace);
                sw.WriteLine(ex.Source);
                sw.WriteLine(ex.InnerException.Message);
                sw.Flush();
                sw.Close();
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: ellil4/PCAT
        private void amStartBtn_Click(object sender, RoutedEventArgs e)
        {
            FiveElementsIntTest.MainWindow mw =
                new FiveElementsIntTest.MainWindow(Query.TestConfig.GetTestArrayFromFile(), mVersion);

            mw.ShowDialog();
        }