Exemplo n.º 1
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();
         SecJobInfoGui SJIG = new SecJobInfoGui(selected);
         SJIG.Show();
         Login.close = 1;
         this.Close();
     }//end try
     catch { MessageBox.Show("לא נבחרה עבודה לצפיה", "!שים לב", MessageBoxButton.OK, MessageBoxImage.Error); }
 }
Exemplo n.º 2
0
 // 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)
 {
     SecJobInfoGui SJIG = new SecJobInfoGui(jobID);
     SJIG.Show();
     Login.close = 1;
     this.Close();
 }