/// <summary>
 /// Сохранение измененных данных в редактируемом элементе
 /// </summary>
 public void SaveData()
 {
     generalDataAndPerformanceControl.SaveData();
     attributesAndParametersControl.SaveData();
     try
     {
         currentDirective.Save(true);
         bool t = currentDirective.PerformSinceEffectivityDate;
         UpdateDirective();
     }
     catch (Exception ex)
     {
         Program.Provider.Logger.Log("Error while saving data", ex);
     }
 }
        private bool AddNewDirective(bool changePageName)
        {
            if (generalDataAndPerformanceControl.ATAChapter == null)
            {
                MessageBox.Show("Please select ATA chapter", (string)new TermsProvider()["SystemName"], MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return(false);
            }
            if (!generalDataAndPerformanceControl.CheckManHours())
            {
                return(false);
            }

            /*if (!generalDataAndPerformanceControl.CheckAmount())
             *  return false;*/
            else
            {
                generalDataAndPerformanceControl.SaveData(addedDirective, changePageName);
                attributesAndParametersControl.SaveData(addedDirective);
                parentBaseDetail.Add(addedDirective);
                return(true);
            }
        }