Example #1
0
        private void btnHistoryFactStaff_Click(object sender, EventArgs e)
        {
            FactStaff currentFactStaff = factStaffBindingSource.Current as FactStaff;
               if (currentFactStaff == null)
               {
               MessageBox.Show("Не выбран редактируемый объект.", "АИС \"Штатное расписание\"");
               return;
               }

               using (Kadr.UI.Forms.FactStaffHistoryForm HistForm =
                          new Kadr.UI.Forms.FactStaffHistoryForm())
               {
               HistForm.FactStaff = currentFactStaff;
               HistForm.ShowDialog();
               }
        }
Example #2
0
 private void HistiryHourFactStaffBtn_Click(object sender, EventArgs e)
 {
     using (Kadr.UI.Forms.FactStaffHistoryForm HistForm =
                   new Kadr.UI.Forms.FactStaffHistoryForm())
        {
        HistForm.FactStaff = hourFactStaffBindingSource.Current as Kadr.Data.FactStaff;
        HistForm.ShowDialog();
        }
 }