Esempio n. 1
0
        private void buttonAddActualData_Click(object sender, EventArgs e)
        {
            ActualStateRecordForm form = new ActualStateRecordForm(currentDetail);

            form.RecordChanged += form_RecordChanged;
            form.ShowDialog();
        }
Esempio n. 2
0
 /// <summary>
 /// Редактирует техничесую запись агрегата
 /// </summary>
 private void buttonEditRecord_Click(object sender, EventArgs e)
 {
     if (complianceControl.SelectedItem == null)
     {
         return;
     }
     if (complianceControl.SelectedItem.RecordType == RecordTypesCollection.Instance.TransferType)
     {
         TransferRecordForm form = new TransferRecordForm(currentDetail, (TransferRecord)complianceControl.SelectedItem);
         form.RecordChanged += form_RecordChanged;
         form.ShowDialog();
     }
     else if (complianceControl.SelectedItem.RecordType == RecordTypesCollection.Instance.ActualStateRecordType)
     {
         ActualStateRecordForm form = new ActualStateRecordForm((ActualStateRecord)complianceControl.SelectedItem);
         form.RecordChanged += form_RecordChanged;
         form.ShowDialog();
     }
     else
     {
         ComplianceForm form = new ComplianceForm((DirectiveRecord)complianceControl.SelectedItem);
         form.RecordChanged += form_RecordChanged;
         form.ShowDialog();
     }
 }