/// <summary>
        /// Сохраняет данные текущей шаблонной директивы
        /// </summary>
        protected bool Save()
        {
            double manHours;

            if (!generalDataAndPerformanceControl.CheckManHours(out manHours) || !generalDataAndPerformanceControl.CheckLifelengthes())
            {
                return(false);
            }
            if (generalDataAndPerformanceControl.GetChangeStatus(true) || attributesAndParametersControl.GetChangeStatus(true) || currentDirective.Modified)
            {
                SaveData();
            }
            return(true);
        }
        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);
            }
        }