コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            List <string> TestType = new List <string>();

            TestType.Add("模块测试");
            TestType.Add("整表测试");
            this.comBoxTestCourse.ItemsSource = TestType;
            List <string> list = new List <string>();

            list.Add("模块测试结果");
            list.Add("整表测试结果");
            this.comBoxTestResult.ItemsSource = list;
            MyDatabaseMethod = new DatabaseMethod(this.comBoxTestCourse, this.DataGridTestCourse);
            myWindow         = new ComWindow();
            MessageExt.Instance.ShowDialog = ShowDialog;
            //timer
            this.MyTestTimeTimer          = new DispatcherTimer(DispatcherPriority.Normal);
            this.MyTestTimeTimer.Tick    += new EventHandler(TestTimeTimer_Tick);
            this.MyTestTimeTimer.Interval = new TimeSpan(0, 0, 1);
        }
コード例 #2
0
        private void btnComsetting_Click(object sender, RoutedEventArgs e)
        {
            ComWindow myWindow = new ComWindow();

            myWindow.ShowDialog();
        }