// go to previous screen.
 /// <summary>
 /// Handles the Click event of the Back_Btn control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void Back_Btn_Click(object sender, RoutedEventArgs e)
 {
     QualityJobInfoGui QJIG = new QualityJobInfoGui(jobID);
     QJIG.Show();
     Login.close = 1;
     this.Close();
 }
示例#2
0
 /// <summary>
 /// Handles the Click event of the ViewJobIInfo_button control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void ViewJobIInfo_button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         DataRowView row = (DataRowView)dataGrid1.SelectedItems[0];
         string selected = row["מספר עבודה"].ToString();
         QualityJobInfoGui QJIG = new QualityJobInfoGui(selected);
         QJIG.Show();
         Login.close = 1;
         this.Close();
     }//end try
     catch { MessageBox.Show("לא נבחרה עבודה לצפיה", "!שים לב", MessageBoxButton.OK, MessageBoxImage.Error); }
 }