예제 #1
0
        //private void btnScreening_Loaded(object sender, RoutedEventArgs e)
        //{
        //    Button button = (Button)sender;
        //    button.Focus();
        //}

        //private void btnScreening_Click(object sender, RoutedEventArgs e)
        //{
        //    try
        //    {
        //        IntPtr screeningBtnHwnd = Win32Api.FindWindowEx(App.splashWinHwnd, IntPtr.Zero, null, App.strScreening);
        //        Win32Api.SendMessage(screeningBtnHwnd, Win32Api.WM_CLICK, 0, 0);
        //        this.StartMouseHook();
        //        this.Visibility = Visibility.Hidden;
        //    }
        //    catch (Exception ex)
        //    {
        //        MessageBox.Show("System Exception: "+ex.Message);
        //    }
            
        //}

        //private void btnDiagnostics_Click(object sender, RoutedEventArgs e)
        //{
        //    try
        //    {
        //        IntPtr diagnosticsBtnHwnd = Win32Api.FindWindowEx(App.splashWinHwnd, IntPtr.Zero, null, App.strDiagnostics);
        //        Win32Api.SendMessage(diagnosticsBtnHwnd, Win32Api.WM_CLICK, 0, 0);
        //        this.StartMouseHook();
        //        this.Visibility = Visibility.Hidden;
        //    }
        //    catch (Exception ex)
        //    {
        //        MessageBox.Show("System Exception: " + ex.Message);
        //    }
                 
        //}         

        private void btnReport_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Hidden;
            UserList userList = new UserList();
            userList.Owner = this;
            userList.Show();

        }
예제 #2
0
 private void Report_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     UserList userList = new UserList();
     //summaryReportPage.closeWindowEvent += new CloseWindowHandler(ShowMainWindow);
     userList.Owner = this;
     userList.ShowDialog();
 }