public EngineeringOrderDirectiveAddingScreen(BaseDetail parentBaseDetail)
        {
            this.parentBaseDetail = parentBaseDetail;

            headerControl               = new HeaderControl();
            footerControl               = new FooterControl();
            aircraftHeader              = new AircraftHeaderControl(parentBaseDetail.ParentAircraft, true, true);
            generalInforationContainer  = new ExtendableRichContainer();
            complianceDataContainer     = new ExtendableRichContainer();
            complianceTermsContainer    = new ExtendableRichContainer();
            incorporationPlaceContainer = new ExtendableRichContainer();

            generalInformationControl = new EngineeringOrderDirectiveGeneralInformationControl();
            complianceDataControl     = new EngineeringOrderDirectiveComplianceDataControl();
            complianceTermsControl    = new EngineeringOrderDirectiveComplianceTermsControl();
            incorporationPlaceControl = new EngineeringOrderDirectiveIncorporationPlaceControl();
            //
            // aircraftHeader
            //
            aircraftHeader.OperatorClickable = true;
            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.ButtonReload.Icon           = icons.SaveAndAdd;
            headerControl.ButtonReload.IconNotEnabled = icons.SaveAndAddGray;
            headerControl.ButtonReload.IconLayout     = ImageLayout.Center;
            headerControl.ButtonReload.TextMain       = "Save and";
            headerControl.ButtonReload.TextSecondary  = "add another";
            headerControl.ButtonReload.Click         += buttonSaveAndAdd_Click;

            headerControl.ButtonEdit.Icon                = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled      = icons.SaveGray;
            headerControl.ButtonEdit.IconLayout          = ImageLayout.Center;
            headerControl.ButtonEdit.ReflectionType      = ReflectionTypes.DisplayInCurrent;
            headerControl.ButtonEdit.TextMain            = "Save";
            headerControl.ButtonEdit.TextSecondary       = "and Edit";
            headerControl.ButtonEdit.DisplayerRequested += buttonSaveAndEdit_DisplayerRequested;
            headerControl.TabIndex = 0;
            //
            // footerControl
            //
            footerControl.TabIndex = 2;
            //
            // mainPanel
            //
            mainPanel.AutoScroll = true;
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.TabIndex   = 1;
            mainPanel.Controls.Add(containedPanel);
            //
            // containedPanel
            //
            containedPanel.AutoSize      = true;
            containedPanel.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
            containedPanel.FlowDirection = FlowDirection.TopDown;
            containedPanel.TabIndex      = 1;
            //
            // panelHeader
            //
            panelHeader.Size     = new Size(1250, 50);
            panelHeader.TabIndex = 0;
            //
            // generalInforationContainer
            //
            generalInforationContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            generalInforationContainer.LabelCaption.Text = "General Information";
            generalInforationContainer.MainControl       = generalInformationControl;
            generalInforationContainer.UpperLeftIcon     = icons.GrayArrow;
            generalInforationContainer.TabIndex          = 0;
            //
            // complianceDataContainer
            //
            complianceDataContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            complianceDataContainer.LabelCaption.Text = "Compliance Data";
            complianceDataContainer.MainControl       = complianceDataControl;
            complianceDataContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceDataContainer.TabIndex          = 1;
            //
            // complianceTermsContainer
            //
            complianceTermsContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            complianceTermsContainer.LabelCaption.Text = "Compliance Terms";
            complianceTermsContainer.MainControl       = complianceTermsControl;
            complianceTermsContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceTermsContainer.TabIndex          = 2;
            //
            // incorporationPlaceContainer
            //
            incorporationPlaceContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            incorporationPlaceContainer.LabelCaption.Text = "Incorporation Place";
            incorporationPlaceContainer.MainControl       = incorporationPlaceControl;
            incorporationPlaceContainer.UpperLeftIcon     = icons.GrayArrow;
            incorporationPlaceContainer.TabIndex          = 3;

            containedPanel.Controls.Add(panelHeader);
            containedPanel.Controls.Add(generalInforationContainer);
            containedPanel.Controls.Add(complianceDataContainer);
            containedPanel.Controls.Add(complianceTermsContainer);
            containedPanel.Controls.Add(incorporationPlaceContainer);

            BackColor = Css.CommonAppearance.Colors.BackColor;
            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);

            ClearFields();
        }
        //Panel paneltemp = new Panel();

        #endregion

        #region Constructor

        /// <summary>
        /// Создает элемент управления для отображения <see cref="EngineeringOrderDirective"/>
        /// </summary>
        /// <param name="directive">Сама дирктива</param>
        ///// <param name="parentDirectiveContainer"></param>
        public EngineeringOrderDirectiveScreen(EngineeringOrderDirective directive)//, IDirectiveContainer parentDirectiveContainer)
        {
            this.directive = directive;
            // this.parentDirectiveContainer = parentDirectiveContainer;
            permissionForUpdate         = directive.HasPermission(Users.CurrentUser, DataEvent.Update);
            permissionForDelete         = directive.HasPermission(Users.CurrentUser, DataEvent.Remove);
            headerControl               = new HeaderControl();
            footerControl               = new FooterControl();
            aircraftHeader              = new AircraftHeaderControl(directive.Parent.Parent as Aircraft, true, true);
            generalInforationContainer  = new ExtendableRichContainer();
            referenceDataContainer      = new ExtendableRichContainer();
            complianceDataContainer     = new ExtendableRichContainer();
            complianceTermsContainer    = new ExtendableRichContainer();
            incorporationPlaceContainer = new ExtendableRichContainer();
            affectedDocumentsContainer  = new ExtendableRichContainer();
            referenceDocumentsContainer = new ExtendableRichContainer();
            referenceDrawingsContainer  = new ExtendableRichContainer();
            MJOContainer                 = new ExtendableRichContainer();
            sparePartKitContainer        = new ExtendableRichContainer();
            consumableMaterialsContainer = new ExtendableRichContainer();
            equipmentToolsGSEContainer   = new ExtendableRichContainer();
            specificNotesDataContainer   = new ExtendableRichContainer();
            complianceDirectiveContainer = new ExtendableRichContainer();
            generalInformationControl    = new EngineeringOrderDirectiveGeneralInformationControl(directive);
            referenceDataControl         = new EngineeringOrderDirectiveListControl(directive.ReferenceDataTable, new string[] { "Type", "Document", "Revision", "Date", "Issuer" }, new float[] { 0.1f, 0.3f, 0.3f, 0.1f, 0.14f }, permissionForUpdate);
            complianceDataControl        = new EngineeringOrderDirectiveComplianceDataControl(directive);
            complianceTermsControl       = new EngineeringOrderDirectiveComplianceTermsControl(directive);
            incorporationPlaceControl    = new EngineeringOrderDirectiveIncorporationPlaceControl(directive);
            affectedDocumentsControl     = new EngineeringOrderDirectiveListControl(directive.AffectedDocumentsTable, new string[] { "Type", "ATA Number", "Pages" }, new float[] { 0.1f, 0.7f, 0.14f }, permissionForUpdate);
            referenceDocumentsControl    = new EngineeringOrderDirectiveListControl(directive.ReferenceDocumentsTable, new string[] { "Type", "ATA Number", "Pages" }, new float[] { 0.1f, 0.7f, 0.14f }, permissionForUpdate);
            referenceDrawingsControl     = new EngineeringOrderDirectiveListControl(directive.ReferenceDrawingsTable, new string[] { "Drawing Number", "Title", "Issue Date" }, new float[] { 0.1f, 0.7f, 0.14f }, permissionForUpdate);
            MJOControl                 = new EngineeringOrderDirectiveListControl(directive.MJOTable, new string[] { "Name", "Revision", "Item" }, new float[] { 0.1f, 0.7f, 0.14f }, permissionForUpdate);
            sparePartKitControl        = new EngineeringOrderDirectiveListControl(directive.SparePartTable, new string[] { "Part Number", "Name", "Title", "Reference", "Quantity", "Price", "Delivery to date" }, new float[] { 0.1f, 0.2f, 0.2f, 0.16f, 0.1f, 0.1f, 0.08f }, permissionForUpdate);
            consumableMaterialsControl = new EngineeringOrderDirectiveListControl(directive.ConsumebleMaterialTable, new string[] { "Part Number", "Specification", "Name", "Reference", "Quantity", "Price", "Delivery to date" }, new float[] { 0.1f, 0.2f, 0.2f, 0.16f, 0.1f, 0.1f, 0.08f }, permissionForUpdate);
            equipmentToolsGSEControl   = new EngineeringOrderDirectiveListControl(directive.EquipmentToolsGSETable, new string[] { "Part Number", "Name", "Title", "Reference", "Quantity", "Price", "Delivery to date" }, new float[] { 0.1f, 0.2f, 0.2f, 0.16f, 0.1f, 0.1f, 0.08f }, permissionForUpdate);
            specificNotesDataControl   = new EngineeringOrderDirectiveSpecificNotesDataControl(directive);
            complianceDirectiveControl = new DirectiveComplianceListView(directive);
            //
            // aircraftHeader
            //
            aircraftHeader.AircraftClickable = true;
            //
            // headerControl
            //
            headerControl.Controls.Add(aircraftHeader);
            headerControl.ContextActionControl.ShowPrintButton = true;
            headerControl.TabIndex     = 0;
            headerControl.ReloadRised += headerControl_ReloadRised;
            headerControl.ButtonEdit.DisplayerRequested += ButtonSave_DisplayerRequested;
            headerControl.ContextActionControl.ButtonPrint.DisplayerRequested += ButtonPrint_DisplayerRequested;
            headerControl.ContextActionControl.ButtonHelp.TopicID              = "directive.html";
            headerControl.ButtonEdit.TextMain       = "Save";
            headerControl.ButtonEdit.Icon           = icons.Save;
            headerControl.ButtonEdit.IconNotEnabled = icons.SaveGray;
            headerControl.ButtonEdit.Enabled        = permissionForUpdate;
            //
            // footerControl
            //
            footerControl.TabIndex = 2;
            //
            // mainPanel
            //
            mainPanel.AutoScroll = true;
            mainPanel.Dock       = DockStyle.Fill;
            mainPanel.TabIndex   = 1;
            mainPanel.Controls.Add(containedPanel);
            //
            // containedPanel
            //
            containedPanel.AutoSize      = true;
            containedPanel.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
            containedPanel.FlowDirection = FlowDirection.TopDown;
            containedPanel.TabIndex      = 1;
            //
            // panelHeader
            //
            panelHeader.Size     = new Size(1250, 50);
            panelHeader.TabIndex = 0;
            panelHeader.Controls.Add(buttonDeleteDirective);
            panelHeader.Controls.Add(statusLinkLabel);
            //
            // statusLinkLabel
            //
            statusLinkLabel.ActiveLinkColor        = Color.Black;
            statusLinkLabel.Enabled                = false;
            statusLinkLabel.HoveredLinkColor       = Color.Black;
            statusLinkLabel.ImageBackColor         = Color.Transparent;
            statusLinkLabel.ImageLayout            = ImageLayout.Center;
            statusLinkLabel.LinkColor              = Color.DimGray;
            statusLinkLabel.LinkMouseCapturedColor = Color.Empty;
            statusLinkLabel.Location               = new Point(5, 10);
            statusLinkLabel.Size      = new Size(500, 27);
            statusLinkLabel.TextAlign = ContentAlignment.MiddleLeft;
            statusLinkLabel.TextFont  = Css.OrdinaryText.Fonts.RegularFont;
            //
            // buttonDeleteDirective
            //
            buttonDeleteDirective.Anchor             = AnchorStyles.Right | AnchorStyles.Top;
            buttonDeleteDirective.BackColor          = Color.Transparent;
            buttonDeleteDirective.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteDirective.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteDirective.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteDirective.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteDirective.Location           = new Point(panelHeader.Right - 160, 0);
            buttonDeleteDirective.Icon                = icons.Delete;
            buttonDeleteDirective.IconNotEnabled      = icons.DeleteGray;
            buttonDeleteDirective.IconLayout          = ImageLayout.Center;
            buttonDeleteDirective.PaddingMain         = new Padding(3, 0, 0, 0);
            buttonDeleteDirective.ReflectionType      = ReflectionTypes.CloseSelected;
            buttonDeleteDirective.Size                = new Size(160, 50);
            buttonDeleteDirective.TabIndex            = 16;
            buttonDeleteDirective.TextAlignMain       = ContentAlignment.MiddleLeft;
            buttonDeleteDirective.TextAlignSecondary  = ContentAlignment.TopLeft;
            buttonDeleteDirective.TextMain            = "Delete";
            buttonDeleteDirective.TextSecondary       = "directive";
            buttonDeleteDirective.DisplayerRequested += buttonDeleteDirective_DisplayerRequested;
            buttonDeleteDirective.Enabled             = permissionForDelete;
            //
            // generalInforationContainer
            //
            generalInforationContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            generalInforationContainer.LabelCaption.Text = "General Information";
            generalInforationContainer.MainControl       = generalInformationControl;
            generalInforationContainer.UpperLeftIcon     = icons.GrayArrow;
            generalInforationContainer.TabIndex          = 0;
            //
            // referenceDataContainer
            //
            referenceDataContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            referenceDataContainer.LabelCaption.Text = "Reference Data";
            referenceDataContainer.MainControl       = referenceDataControl;
            referenceDataContainer.UpperLeftIcon     = icons.GrayArrow;
            referenceDataContainer.TabIndex          = 1;
            //
            // complianceDataContainer
            //
            complianceDataContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            complianceDataContainer.LabelCaption.Text = "Compliance Data";
            complianceDataContainer.MainControl       = complianceDataControl;
            complianceDataContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceDataContainer.TabIndex          = 2;
            //
            // complianceTermsContainer
            //
            complianceTermsContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            complianceTermsContainer.LabelCaption.Text = "Compliance Terms";
            complianceTermsContainer.MainControl       = complianceTermsControl;
            complianceTermsContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceTermsContainer.TabIndex          = 3;
            //
            // incorporationPlaceContainer
            //
            incorporationPlaceContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            incorporationPlaceContainer.LabelCaption.Text = "Incorporation Place";
            incorporationPlaceContainer.MainControl       = incorporationPlaceControl;
            incorporationPlaceContainer.UpperLeftIcon     = icons.GrayArrow;
            incorporationPlaceContainer.TabIndex          = 4;
            //
            // affectedDocumentsContainer
            //
            affectedDocumentsContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            affectedDocumentsContainer.LabelCaption.Text = "Affected Documents";
            affectedDocumentsContainer.MainControl       = affectedDocumentsControl;
            affectedDocumentsContainer.UpperLeftIcon     = icons.GrayArrow;
            affectedDocumentsContainer.TabIndex          = 5;
            //
            // referenceDocumentsContainer
            //
            referenceDocumentsContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            referenceDocumentsContainer.LabelCaption.Text = "Reference Documents";
            referenceDocumentsContainer.MainControl       = referenceDocumentsControl;
            referenceDocumentsContainer.UpperLeftIcon     = icons.GrayArrow;
            referenceDocumentsContainer.TabIndex          = 6;
            //
            // referenceDrawingsContainer
            //
            referenceDrawingsContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            referenceDrawingsContainer.LabelCaption.Text = "Reference Drawings";
            referenceDrawingsContainer.MainControl       = referenceDrawingsControl;
            referenceDrawingsContainer.UpperLeftIcon     = icons.GrayArrow;
            referenceDrawingsContainer.TabIndex          = 7;
            //
            // MJOContainer
            //
            MJOContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            MJOContainer.LabelCaption.Text = "MJO";
            MJOContainer.MainControl       = MJOControl;
            MJOContainer.UpperLeftIcon     = icons.GrayArrow;
            MJOContainer.TabIndex          = 8;
            //
            // sparePartKitContainer
            //
            sparePartKitContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            sparePartKitContainer.LabelCaption.Text = "Spare Part / Kit";
            sparePartKitContainer.MainControl       = sparePartKitControl;
            sparePartKitContainer.UpperLeftIcon     = icons.GrayArrow;
            sparePartKitContainer.TabIndex          = 9;
            //
            // consumableMaterialsContainer
            //
            consumableMaterialsContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            consumableMaterialsContainer.LabelCaption.Text = "Consumable Material";
            consumableMaterialsContainer.MainControl       = consumableMaterialsControl;
            consumableMaterialsContainer.UpperLeftIcon     = icons.GrayArrow;
            consumableMaterialsContainer.TabIndex          = 10;
            //
            // equipmentToolsGSEContainer
            //
            equipmentToolsGSEContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            equipmentToolsGSEContainer.LabelCaption.Text = "Equipment / Tools / GSE";
            equipmentToolsGSEContainer.MainControl       = equipmentToolsGSEControl;
            equipmentToolsGSEContainer.UpperLeftIcon     = icons.GrayArrow;
            equipmentToolsGSEContainer.TabIndex          = 11;
            //
            // specificNotesDataContainer
            //
            specificNotesDataContainer.BackColor         = Css.CommonAppearance.Colors.BackColor;
            specificNotesDataContainer.LabelCaption.Text = "Specific Notes / Data";
            specificNotesDataContainer.MainControl       = specificNotesDataControl;
            specificNotesDataContainer.UpperLeftIcon     = icons.GrayArrow;
            specificNotesDataContainer.TabIndex          = 12;
            //
            // buttonAddPerformance
            //
            buttonAddPerformance.BackColor          = Color.Transparent;
            buttonAddPerformance.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddPerformance.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonAddPerformance.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddPerformance.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonAddPerformance.Icon               = icons.Add;
            buttonAddPerformance.IconNotEnabled     = icons.AddGray;
            buttonAddPerformance.IconLayout         = ImageLayout.Center;
            buttonAddPerformance.PaddingSecondary   = new Padding(0);
            buttonAddPerformance.Size               = new Size(160, 50);
            buttonAddPerformance.TabIndex           = 16;
            buttonAddPerformance.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonAddPerformance.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonAddPerformance.TextMain           = "Add Performance";
            buttonAddPerformance.Click             += buttonAddNewRecord_Click;
            //
            // buttonDirectiveClosing
            //
            buttonDirectiveClosing.BackColor          = Color.Transparent;
            buttonDirectiveClosing.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDirectiveClosing.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDirectiveClosing.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDirectiveClosing.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDirectiveClosing.Icon               = icons.Add;
            buttonDirectiveClosing.IconNotEnabled     = icons.AddGray;
            buttonDirectiveClosing.IconLayout         = ImageLayout.Center;
            buttonDirectiveClosing.PaddingSecondary   = new Padding(0);
            buttonDirectiveClosing.Size               = new Size(150, 50);
            buttonDirectiveClosing.TabIndex           = 16;
            buttonDirectiveClosing.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonDirectiveClosing.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonDirectiveClosing.TextMain           = "Close Directive";
            buttonDirectiveClosing.Click             += buttonDirectiveClosing_Click;
            //
            // buttonEditRecord
            //
            buttonEditRecord.BackColor          = Color.Transparent;
            buttonEditRecord.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonEditRecord.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonEditRecord.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonEditRecord.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonEditRecord.Icon               = icons.Edit;
            buttonEditRecord.IconNotEnabled     = icons.EditGray;
            buttonEditRecord.IconLayout         = ImageLayout.Center;
            buttonEditRecord.PaddingSecondary   = new Padding(0);
            buttonEditRecord.Size               = new Size(130, 50);
            buttonEditRecord.TabIndex           = 16;
            buttonEditRecord.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonEditRecord.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonEditRecord.TextMain           = "Edit";
            buttonEditRecord.Click             += buttonEditRecord_Click;
            //
            // buttonDeleteRecord
            //
            buttonDeleteRecord.BackColor          = Color.Transparent;
            buttonDeleteRecord.Cursor             = Cursors.Hand;
            buttonDeleteRecord.FontMain           = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteRecord.FontSecondary      = Css.HeaderControl.Fonts.PrimaryFont;
            buttonDeleteRecord.ForeColorMain      = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteRecord.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor;
            buttonDeleteRecord.Icon               = icons.Delete;
            buttonDeleteRecord.IconNotEnabled     = icons.DeleteGray;
            buttonDeleteRecord.IconLayout         = ImageLayout.Center;
            buttonDeleteRecord.PaddingSecondary   = new Padding(0);
            buttonDeleteRecord.Size               = new Size(150, 50);
            buttonDeleteRecord.TabIndex           = 16;
            buttonDeleteRecord.TextAlignMain      = ContentAlignment.MiddleLeft;
            buttonDeleteRecord.TextAlignSecondary = ContentAlignment.TopCenter;
            buttonDeleteRecord.TextMain           = "Remove";
            buttonDeleteRecord.Click             += buttonDeleteRecord_Click;
            //
            // complianceDirectiveControl
            //
            complianceDirectiveControl.Location              = new Point(COMPLIANCE_LEFT_MARGIN, 0);
            complianceDirectiveControl.SelectedItemsChanged += complianceDirectiveControl_SelectedItemsChanged;
            complianceDirectiveControl.ItemEdited           += complianceDirectiveControl_ItemEdited;
            complianceDirectiveControl.SizeChanged          += complianceDirectiveControl_SizeChanged;
            //
            // panelCompliance
            //
            panelCompliance.AutoSize     = true;
            panelCompliance.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            panelCompliance.BackColor    = Css.CommonAppearance.Colors.BackColor;
            panelCompliance.Dock         = DockStyle.Top;
            panelCompliance.TabIndex     = 5;
            panelCompliance.Controls.Add(complianceDirectiveControl);
            panelCompliance.Controls.Add(buttonAddPerformance);
            panelCompliance.Controls.Add(buttonDirectiveClosing);
            panelCompliance.Controls.Add(buttonEditRecord);
            panelCompliance.Controls.Add(buttonDeleteRecord);
            panelCompliance.SizeChanged += panelCompliance_SizeChanged;
            //
            // complianceDirectiveContainer
            //
            complianceDirectiveContainer.Dock = DockStyle.Top;
            complianceDirectiveContainer.LabelCaption.Text = "Compliance";
            complianceDirectiveContainer.UpperLeftIcon     = icons.GrayArrow;
            complianceDirectiveContainer.Extending        += complianceDirectiveContainer_Extending;
            complianceDirectiveContainer.TabIndex          = 4;

            containedPanel.Controls.Add(panelHeader);
            containedPanel.Controls.Add(generalInforationContainer);
            containedPanel.Controls.Add(referenceDataContainer);
            containedPanel.Controls.Add(complianceDataContainer);
            containedPanel.Controls.Add(complianceTermsContainer);
            containedPanel.Controls.Add(incorporationPlaceContainer);
            containedPanel.Controls.Add(affectedDocumentsContainer);
            containedPanel.Controls.Add(referenceDocumentsContainer);
            containedPanel.Controls.Add(referenceDrawingsContainer);
            containedPanel.Controls.Add(MJOContainer);
            containedPanel.Controls.Add(sparePartKitContainer);
            containedPanel.Controls.Add(consumableMaterialsContainer);
            containedPanel.Controls.Add(equipmentToolsGSEContainer);
            containedPanel.Controls.Add(specificNotesDataContainer);
            containedPanel.Controls.Add(complianceDirectiveContainer);
            containedPanel.Controls.Add(panelCompliance);


            BackColor = Css.CommonAppearance.Colors.BackColor;
            Controls.Add(mainPanel);
            Controls.Add(footerControl);
            Controls.Add(headerControl);


            UpdateScreen(false);
        }