Example #1
0
 /// <summary>
 /// Создает форму для отображения информации о <see cref="JobCard"/>
 /// </summary>
 /// <param name="detail"></param>
 public MaintenanceJobCardForm(AbstractDetail detail)
 {
     this.detail    = detail;
     mode           = ScreenMode.Edit;
     jobCardControl = new JobCardTabPageControl(detail);
     InitializeComponent();
     UpdateInformation();
 }
Example #2
0
 /// <summary>
 /// Создает форму для отображения информации о <see cref="JobCard"/>
 /// </summary>
 /// <param name="jobCard"></param>
 public MaintenanceJobCardForm(JobCard jobCard)
 {
     currentJobCard = jobCard;
     mode           = ScreenMode.Edit;
     jobCardControl = new JobCardTabPageControl(currentJobCard);
     InitializeComponent();
     UpdateInformation();
 }
Example #3
0
 /// <summary>
 /// Создает форму для отображения информации о <see cref="JobCard"/>
 /// </summary>
 /// <param name="detailDirective"></param>
 public MaintenanceJobCardForm(DetailDirective detailDirective)
 {
     this.detailDirective = detailDirective;
     mode           = ScreenMode.Edit;
     jobCardControl = new JobCardTabPageControl(detailDirective);
     InitializeComponent();
     UpdateInformation();
 }
Example #4
0
 /// <summary>
 /// Создает форму для добавления <see cref="JobCard"/>
 /// </summary>
 /// <param name="maintenanceSubCheck"></param>
 /// <param name="dialogFileName"></param>
 public MaintenanceJobCardForm(MaintenanceSubCheck maintenanceSubCheck, string dialogFileName)
 {
     parentMaintenanceSubCheck = maintenanceSubCheck;
     currentJobCard            = new JobCard();
     mode           = ScreenMode.Add;
     jobCardControl = new JobCardTabPageControl(maintenanceSubCheck, dialogFileName);
     InitializeComponent();
 }