//private readonly string easaFileName = "EASA Form 8330.pdf"; #endregion #region Constructor /// <summary> /// Создает элемент управления для отображения отдельного агрегата /// </summary> /// <param name="detail"></param> public DetailScreen(AbstractDetail detail) { if (detail == null) { throw new ArgumentNullException("detail", "Argument cannot be null"); } currentDetail = detail; BackColor = Css.CommonAppearance.Colors.BackColor; Dock = DockStyle.Fill; footerControl = new FooterControl(); headerControl = new HeaderControl(); aircraftHeader = new AircraftHeaderControl(currentDetail.Aircraft, true); baseDetailHeaderControl = new BaseDetailHeaderControl(currentDetail); generalInformationControl = new DetailGeneralInformationControl(currentDetail); compliancePerformanceControl = new DetailCompliancePerformanceListControl(currentDetail); warrantyControl = new DetailWarrantyControl(currentDetail); easaControl = new EASAControl(currentDetail, "Adobe PDF Files|*.pdf", "This record does not contain a file proving the origin of the detail. Enclose PDF file to prove the origin.", "Attached file proves the origin of the detail.", icons.PDFSmall); if (!currentDetail.InUse) { storeControl = new DetailStoreControl(currentDetail); } complianceControl = new DetailComplianceListView(currentDetail); generalInformationContainer = new ExtendableRichContainer(); compliancePerformanceContainer = new ExtendableRichContainer(); warrantyContainer = new ExtendableRichContainer(); easaContainer = new ExtendableRichContainer(); storeContainer = new ExtendableRichContainer(); complianceDetailContainer = new ExtendableRichContainer(); buttonAddCompliance = new AvButtonT(); buttonAddActualData = new AvButtonT(); buttonDeleteRecord = new AvButtonT(); buttonEditRecord = new AvButtonT(); buttonInstallPickOffDetail = new RichReferenceButton(); // // aircraftHeader // aircraftHeader.AircraftClickable = true; // // headerControl // headerControl.Controls.Add(aircraftHeader); headerControl.ButtonEdit.TextMain = "Save"; headerControl.ButtonEdit.Icon = icons.Save; headerControl.ButtonEdit.IconNotEnabled = icons.SaveGray; headerControl.TabIndex = 0; headerControl.ContextActionControl.ShowPrintButton = true; headerControl.ButtonEdit.DisplayerRequested += ButtonSave_DisplayerRequested; headerControl.ReloadRised += headerControl_ReloadRised; headerControl.ContextActionControl.ButtonPrint.DisplayerRequested += ButtonPrint_DisplayerRequested; headerControl.ContextActionControl.ButtonHelp.TopicID = "work_with_the_aggregate"; // // 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; // // generalInformationContainer // generalInformationContainer.Extended = false; generalInformationContainer.BackColor = Css.CommonAppearance.Colors.BackColor; generalInformationContainer.UpperLeftIcon = icons.GrayArrow; generalInformationContainer.Caption = "Component General Information"; generalInformationContainer.MainControl = generalInformationControl; generalInformationContainer.TabIndex = 2; // // compliancePerformanceContainer // compliancePerformanceContainer.Extended = false; compliancePerformanceContainer.BackColor = Css.CommonAppearance.Colors.BackColor; compliancePerformanceContainer.UpperLeftIcon = icons.GrayArrow; compliancePerformanceContainer.Caption = "Compliance/Performance"; compliancePerformanceContainer.MainControl = compliancePerformanceControl; compliancePerformanceContainer.TabIndex = 3; // // warrantyContainer // warrantyContainer.Extended = false; warrantyContainer.BackColor = Css.CommonAppearance.Colors.BackColor; warrantyContainer.UpperLeftIcon = icons.GrayArrow; warrantyContainer.Caption = "Warranty"; warrantyContainer.MainControl = warrantyControl; warrantyContainer.TabIndex = 4; // // easaContainer // easaContainer.Extended = false; easaContainer.BackColor = Css.CommonAppearance.Colors.BackColor; easaContainer.UpperLeftIcon = icons.GrayArrow; //easaContainer.Caption = "EASA / FAA Form 8330"; easaContainer.Caption = "FAA Form 8330"; easaContainer.MainControl = easaControl; easaContainer.TabIndex = 5; // // storeContainer // storeContainer.Extended = false; storeContainer.BackColor = Css.CommonAppearance.Colors.BackColor; storeContainer.UpperLeftIcon = icons.GrayArrow; storeContainer.Caption = "Store"; storeContainer.MainControl = storeControl; storeContainer.TabIndex = 7; // // buttonAddCompliance // buttonAddCompliance.BackColor = Color.Transparent; buttonAddCompliance.FontMain = Css.HeaderControl.Fonts.PrimaryFont; buttonAddCompliance.FontSecondary = Css.HeaderControl.Fonts.PrimaryFont; buttonAddCompliance.ForeColorMain = Css.HeaderControl.Colors.PrimaryColor; buttonAddCompliance.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor; buttonAddCompliance.Icon = icons.Add; buttonAddCompliance.IconNotEnabled = icons.AddGray; buttonAddCompliance.IconLayout = ImageLayout.Center; buttonAddCompliance.PaddingSecondary = new Padding(0); buttonAddCompliance.Size = new Size(150, 50); buttonAddCompliance.TabIndex = 16; buttonAddCompliance.TextAlignMain = ContentAlignment.MiddleLeft; buttonAddCompliance.TextAlignSecondary = ContentAlignment.TopCenter; buttonAddCompliance.TextMain = "Register Compliance"; buttonAddCompliance.Click += buttonAddCompliance_Click; // // buttonAddActualData // buttonAddActualData.BackColor = Color.Transparent; buttonAddActualData.FontMain = Css.HeaderControl.Fonts.PrimaryFont; buttonAddActualData.FontSecondary = Css.HeaderControl.Fonts.PrimaryFont; buttonAddActualData.ForeColorMain = Css.HeaderControl.Colors.PrimaryColor; buttonAddActualData.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor; buttonAddActualData.Icon = icons.Add; buttonAddActualData.IconNotEnabled = icons.AddGray; buttonAddActualData.IconLayout = ImageLayout.Center; buttonAddActualData.PaddingSecondary = new Padding(0); buttonAddActualData.Size = new Size(150, 50); buttonAddActualData.TabIndex = 16; buttonAddActualData.TextAlignMain = ContentAlignment.MiddleLeft; buttonAddActualData.TextAlignSecondary = ContentAlignment.TopCenter; buttonAddActualData.TextMain = "Set Actual State"; buttonAddActualData.Click += buttonAddActualData_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; // // buttonInstallPickOffDetail // buttonInstallPickOffDetail.BackColor = Color.Transparent; buttonInstallPickOffDetail.FontMain = Css.HeaderControl.Fonts.PrimaryFont; buttonInstallPickOffDetail.FontSecondary = Css.HeaderControl.Fonts.PrimaryFont; buttonInstallPickOffDetail.ForeColorMain = Css.HeaderControl.Colors.PrimaryColor; buttonInstallPickOffDetail.ForeColorSecondary = Css.HeaderControl.Colors.PrimaryColor; buttonInstallPickOffDetail.Icon = icons.Edit; buttonInstallPickOffDetail.IconNotEnabled = icons.EditGray; buttonInstallPickOffDetail.IconLayout = ImageLayout.Center; buttonInstallPickOffDetail.PaddingSecondary = new Padding(0); buttonInstallPickOffDetail.Size = new Size(150, 50); buttonInstallPickOffDetail.TabIndex = 16; buttonInstallPickOffDetail.TextAlignMain = ContentAlignment.MiddleLeft; buttonInstallPickOffDetail.TextAlignSecondary = ContentAlignment.TopCenter; buttonInstallPickOffDetail.ReflectionType = ReflectionTypes.DisplayInCurrent; if (currentDetail.InUse) { buttonInstallPickOffDetail.TextMain = "Pick Off"; } else { buttonInstallPickOffDetail.TextMain = "Install"; } buttonInstallPickOffDetail.DisplayerRequested += buttonInstallPickOffDetail_DisplayerRequested; // // complianceControl // complianceControl.Dock = DockStyle.Top; complianceControl.Height = 188; complianceControl.SelectedItemsChanged += complianceDirectiveControl_SelectedItemsChanged; complianceControl.ItemEdited += complianceDirectiveControl_ItemEdited; complianceControl.SizeChanged += complianceDirectiveControl_SizeChanged; // // panelCompliance // panelCompliance.AutoSize = true; panelCompliance.AutoSizeMode = AutoSizeMode.GrowAndShrink; panelCompliance.BackColor = Css.CommonAppearance.Colors.BackColor; panelCompliance.Dock = DockStyle.Top; panelCompliance.Visible = false; panelCompliance.TabIndex = 7; panelCompliance.Controls.Add(complianceControl); panelCompliance.Controls.Add(buttonAddCompliance); panelCompliance.Controls.Add(buttonAddActualData); panelCompliance.Controls.Add(buttonEditRecord); panelCompliance.Controls.Add(buttonDeleteRecord); panelCompliance.Controls.Add(buttonInstallPickOffDetail); // // baseDetailHeaderControl // baseDetailHeaderControl.TabIndex = 0; // // complianceDetailContainer // complianceDetailContainer.LabelCaption.Text = "Compliance"; complianceDetailContainer.UpperLeftIcon = icons.GrayArrow; complianceDetailContainer.Extending += complianceDirectiveContainer_Extending; complianceDetailContainer.TabIndex = 6; containedPanel.Controls.Add(baseDetailHeaderControl); containedPanel.Controls.Add(generalInformationContainer); containedPanel.Controls.Add(compliancePerformanceContainer); containedPanel.Controls.Add(warrantyContainer); containedPanel.Controls.Add(easaContainer); if (!currentDetail.InUse) { containedPanel.Controls.Add(storeContainer); } containedPanel.Controls.Add(complianceDetailContainer); containedPanel.Controls.Add(panelCompliance); Controls.Add(mainPanel); Controls.Add(footerControl); Controls.Add(headerControl); UpdateDetail(false); complianceDirectiveControl_SelectedItemsChanged(complianceControl, new SelectedItemsChangeEventArgs(0)); }
/// <summary> /// Создает элемент управления для отображения отдельного агрегата /// </summary> /// <param name="sourceDetail"></param> public DetailScreen(Detail sourceDetail) { if (sourceDetail == null) { throw new ArgumentNullException("sourceDetail", "Argument cannot be null"); } //currentDetail = detail; Detail detail; if (sourceDetail is BaseDetail) { _currentDetail = GlobalObjects.ComponentCore.GetBaseComponentById(sourceDetail.ItemId); detail = _currentDetail; } else { _currentDetail = GlobalObjects.ComponentCore.GetDetailById(sourceDetail.ItemId); detail = _currentDetail; } BackColor = Css.CommonAppearance.Colors.BackColor; Dock = DockStyle.Fill; var parentAircraft = GlobalObjects.AircraftsCore.GetAircraftById(_currentDetail.ParentAircraftId); var parentStore = GlobalObjects.StoreCore.GetStoreById(_currentDetail.ParentStoreId); if (_currentDetail is BaseDetail && parentAircraft != null) { this.aircraftHeaderControl1.Aircraft = parentAircraft; this.aircraftHeaderControl1.OperatorClickable = true; this.aircraftHeaderControl1.ChildClickable = true; this.aircraftHeaderControl1.NextClickable = true; this.aircraftHeaderControl1.PrevClickable = true; this.statusControl.Aircraft = parentAircraft; _baseDetailHeaderControl = new BaseDetailHeaderControl(_currentDetail); } else if (_currentDetail != null && parentAircraft != null) { this.aircraftHeaderControl1.Aircraft = parentAircraft; this.aircraftHeaderControl1.OperatorClickable = true; this.aircraftHeaderControl1.ChildClickable = true; this.aircraftHeaderControl1.NextClickable = true; this.aircraftHeaderControl1.PrevClickable = true; this.statusControl.Aircraft = parentAircraft; } else if (_currentDetail is BaseDetail && parentStore != null) { aircraftHeaderControl1.Store = parentStore; aircraftHeaderControl1.OperatorClickable = true; aircraftHeaderControl1.NextClickable = true; aircraftHeaderControl1.PrevClickable = true; aircraftHeaderControl1.ChildClickable = true; _baseDetailHeaderControl = new BaseDetailHeaderControl(_currentDetail); } else if (_currentDetail != null && parentStore != null) { aircraftHeaderControl1.Store = parentStore; aircraftHeaderControl1.OperatorClickable = true; aircraftHeaderControl1.NextClickable = true; aircraftHeaderControl1.PrevClickable = true; aircraftHeaderControl1.ChildClickable = true; } if (_currentDetail is BaseDetail && (((BaseDetail)_currentDetail).BaseDetailType == BaseDetailType.Engine || ((BaseDetail)_currentDetail).BaseDetailType == BaseDetailType.Apu)) { this._detailWorkParamsControl = new PowerUnitWorkInRegimeListControl(); this._detailWorkParamsControl.AutoSize = true; this._detailWorkParamsControl.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this._detailWorkParamsControl.Visible = false; this._detailWorkParamsControl.MaximumSize = new System.Drawing.Size(1280, 640); this._detailWorkParamsControl.MinimumSize = new System.Drawing.Size(1168, 545); this._detailWorkParamsControl.Size = new System.Drawing.Size(1168, 545); _extendableRichContainerWorkInRegimes = new ExtendableRichContainer(); this._extendableRichContainerWorkInRegimes.AfterCaptionControl = null; this._extendableRichContainerWorkInRegimes.AfterCaptionControl2 = null; this._extendableRichContainerWorkInRegimes.AfterCaptionControl3 = null; this._extendableRichContainerWorkInRegimes.AutoSize = true; this._extendableRichContainerWorkInRegimes.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this._extendableRichContainerWorkInRegimes.BackColor = System.Drawing.Color.Transparent; this._extendableRichContainerWorkInRegimes.Caption = "Work Params"; this._extendableRichContainerWorkInRegimes.DescriptionTextColor = System.Drawing.Color.DimGray; this._extendableRichContainerWorkInRegimes.Extendable = true; this._extendableRichContainerWorkInRegimes.Extended = true; this._extendableRichContainerWorkInRegimes.Location = new System.Drawing.Point(3, 715); this._extendableRichContainerWorkInRegimes.MainControl = null; this._extendableRichContainerWorkInRegimes.Name = "_extendableRichContainerWorkInRegimes"; this._extendableRichContainerWorkInRegimes.Size = new System.Drawing.Size(252, 40); this._extendableRichContainerWorkInRegimes.TabIndex = 11; this._extendableRichContainerWorkInRegimes.UpperLeftIcon = global::CAS.UI.Properties.Resources.GrayArrow; this._extendableRichContainerWorkInRegimes.Visible = true; this._extendableRichContainerWorkInRegimes.Extending += new System.EventHandler(this.ExtendableRichContainerWorkParamsExtending); } _complianceControl = new DetailComplianceControl(); _compliancePerformanceControl = new DetailCompliancePerformanceListControl(_currentDetail); _compliancePerformanceControl.DirectiveRemoved += CompliancePerformanceControlDirectiveRemoved; _compliancePerformanceControl.LLPLifeLimitChanged += CompliancePerformanceControlLLPLifeLimitChanged; _generalDataAndPerformanceControl = new DetailGeneralInformationControl(_currentDetail); _generalDataAndPerformanceControl.LLPMarkChecked += GeneralDataAndPerformanceControlLLPMarkChecked; _generalDataAndPerformanceControl.ComponentTypeChanged += new Auxiliary.Events.ValueChangedEventHandler(GeneralDataAndPerformanceControlComponentTypeChanged); _summaryControl = new DetailSummary(_currentDetail); _extendableRichContainerSummary = new ExtendableRichContainer(); _extendableRichContainerGeneral = new ExtendableRichContainer(); _extendableRichContainerPerformance = new ExtendableRichContainer(); StatusTitle = "Component Status"; _flowLayoutPanelMain = new FlowLayoutPanel(); // // aircraftHeader // //if(aircraftHeader!=null) //aircraftHeader.AircraftClickable = true; // // headerControl // this.headerControl.ShowPrintButton = true; this.headerControl.ShowSaveButton = true; this.headerControl.Size = new System.Drawing.Size(985, 58); this.headerControl.ReloadButtonClick += new System.EventHandler(this.HeaderControlReloadRised); this.headerControl.SaveButtonClick += new System.EventHandler(this.ButtonSaveDisplayerRequested); this.headerControl.PrintButtonDisplayerRequested += new System.EventHandler <CAS.UI.Interfaces.ReferenceEventArgs>(this.ButtonPrintDisplayerRequested); this.headerControl.Controls.Add(this.aircraftHeaderControl1); this.headerControl.Controls.SetChildIndex(this.aircraftHeaderControl1, 0); // // panel1 // this.panel1.Controls.Add(this._flowLayoutPanelMain); this.panel1.Size = new System.Drawing.Size(973, 478); // // aircraftHeaderControl1 // this.aircraftHeaderControl1.ChildClickable = true; this.aircraftHeaderControl1.OperatorClickable = true; this.aircraftHeaderControl1.NextClickable = true; this.aircraftHeaderControl1.PrevClickable = true; // // statusControl // this.statusControl.MinimumSize = new System.Drawing.Size(1000, 35); this.statusControl.Size = new System.Drawing.Size(1000, 35); // // flowLayoutPanelMain // this._flowLayoutPanelMain.AutoScroll = true; this._flowLayoutPanelMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(241)))), ((int)(((byte)(241))))); if (_baseDetailHeaderControl != null) { this._flowLayoutPanelMain.Controls.Add(_baseDetailHeaderControl); } this._flowLayoutPanelMain.Controls.Add(this._extendableRichContainerSummary); this._flowLayoutPanelMain.Controls.Add(this._summaryControl); this._flowLayoutPanelMain.Controls.Add(this._extendableRichContainerGeneral); this._flowLayoutPanelMain.Controls.Add(this._generalDataAndPerformanceControl); if (_extendableRichContainerWorkInRegimes != null) { this._flowLayoutPanelMain.Controls.Add(this._extendableRichContainerWorkInRegimes); } if (_detailWorkParamsControl != null) { this._flowLayoutPanelMain.Controls.Add(this._detailWorkParamsControl); } this._flowLayoutPanelMain.Controls.Add(this._extendableRichContainerPerformance); this._flowLayoutPanelMain.Controls.Add(this._compliancePerformanceControl); this._flowLayoutPanelMain.Controls.Add(this._complianceControl); this._flowLayoutPanelMain.Dock = System.Windows.Forms.DockStyle.Fill; this._flowLayoutPanelMain.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; this._flowLayoutPanelMain.Location = new System.Drawing.Point(0, 0); this._flowLayoutPanelMain.Name = "_flowLayoutPanelMain"; this._flowLayoutPanelMain.Size = new System.Drawing.Size(973, 478); this._flowLayoutPanelMain.TabIndex = 0; this._flowLayoutPanelMain.WrapContents = false; // // extendableRichContainerSummary // this._extendableRichContainerSummary.AfterCaptionControl = null; this._extendableRichContainerSummary.AfterCaptionControl2 = null; this._extendableRichContainerSummary.AfterCaptionControl3 = null; this._extendableRichContainerSummary.AutoSize = true; this._extendableRichContainerSummary.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this._extendableRichContainerSummary.BackColor = System.Drawing.Color.Transparent; this._extendableRichContainerSummary.Caption = "Summary"; this._extendableRichContainerSummary.DescriptionTextColor = System.Drawing.Color.DimGray; this._extendableRichContainerSummary.Extendable = true; this._extendableRichContainerSummary.Extended = true; this._extendableRichContainerSummary.Location = new System.Drawing.Point(3, 3); this._extendableRichContainerSummary.MainControl = null; this._extendableRichContainerSummary.Name = "extendableRichContainerSummary"; this._extendableRichContainerSummary.Size = new System.Drawing.Size(200, 40); this._extendableRichContainerSummary.TabIndex = 7; this._extendableRichContainerSummary.UpperLeftIcon = global::CAS.UI.Properties.Resources.GrayArrow; this._extendableRichContainerSummary.Extending += new System.EventHandler(this.ExtendableRichContainerSummaryExtending); // // extendableRichContainerGeneral // this._extendableRichContainerGeneral.AfterCaptionControl = null; this._extendableRichContainerGeneral.AfterCaptionControl2 = null; this._extendableRichContainerGeneral.AfterCaptionControl3 = null; this._extendableRichContainerGeneral.AutoSize = true; this._extendableRichContainerGeneral.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this._extendableRichContainerGeneral.BackColor = System.Drawing.Color.Transparent; this._extendableRichContainerGeneral.Caption = "General Data"; this._extendableRichContainerGeneral.DescriptionTextColor = System.Drawing.Color.DimGray; this._extendableRichContainerGeneral.Extendable = true; this._extendableRichContainerGeneral.Extended = true; this._extendableRichContainerGeneral.Location = new System.Drawing.Point(3, 363); this._extendableRichContainerGeneral.MainControl = null; this._extendableRichContainerGeneral.Name = "extendableRichContainerGeneral"; this._extendableRichContainerGeneral.Size = new System.Drawing.Size(252, 40); this._extendableRichContainerGeneral.TabIndex = 9; this._extendableRichContainerGeneral.UpperLeftIcon = global::CAS.UI.Properties.Resources.GrayArrow; this._extendableRichContainerGeneral.Extending += new System.EventHandler(this.ExtendableRichContainerGeneralExtending); // //GeneralDataAndPerformanceControl // this._generalDataAndPerformanceControl.Visible = false; // // extendableRichContainerPerformance // this._extendableRichContainerPerformance.AfterCaptionControl = null; this._extendableRichContainerPerformance.AfterCaptionControl2 = null; this._extendableRichContainerPerformance.AfterCaptionControl3 = null; this._extendableRichContainerPerformance.AutoSize = true; this._extendableRichContainerPerformance.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this._extendableRichContainerPerformance.BackColor = System.Drawing.Color.Transparent; this._extendableRichContainerPerformance.Caption = "Performance"; this._extendableRichContainerPerformance.DescriptionTextColor = System.Drawing.Color.DimGray; this._extendableRichContainerPerformance.Extendable = true; this._extendableRichContainerPerformance.Extended = true; this._extendableRichContainerPerformance.Location = new System.Drawing.Point(3, 1100); this._extendableRichContainerPerformance.MainControl = null; this._extendableRichContainerPerformance.Name = "extendableRichContainerPerformance"; this._extendableRichContainerPerformance.Size = new System.Drawing.Size(242, 40); this._extendableRichContainerPerformance.TabIndex = 13; this._extendableRichContainerPerformance.UpperLeftIcon = global::CAS.UI.Properties.Resources.GrayArrow; this._extendableRichContainerPerformance.Extending += new System.EventHandler(this.ExtendableRichContainerPerformanceExtending); // //CompliancePerformanceControl // this._compliancePerformanceControl.Visible = false; // // _complianceControl // _complianceControl.panelContainer.Visible = false; _complianceControl.ButtonAdd.Enabled = false; _complianceControl.ComplianceAdded += new EventHandler(ComplianceControlComplianceAdded); // // baseDetailHeaderControl // if (_baseDetailHeaderControl != null) { _baseDetailHeaderControl.TabIndex = 0; } // // DirectiveAddingScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ShowTopPanelContainer = false; this.Name = "DetailScreen"; this.Size = new System.Drawing.Size(973, 621); this.Controls.SetChildIndex(this.panel1, 0); this.headerControl.ResumeLayout(false); this.headerControl.PerformLayout(); this.panel1.ResumeLayout(false); this._flowLayoutPanelMain.ResumeLayout(false); this._flowLayoutPanelMain.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); //обновление нижней шапки(через базовый скрин) //CurrentAircraft = _detail.ParentAircraft; StatusTitle = "Component Status"; statusControl.ConditionState = GlobalObjects.PerformanceCalculator.GetConditionState(detail); //if (_detail.ParentBaseDetail.DetailType != DetailType.Frame) // _currentBaseDetail = outOfPhase.ParentBaseDetail; #region ButtonPrintContextMenu buttonPrintMenuStrip = new ContextMenuStrip(); itemPrintReportRecords = new ToolStripMenuItem { Text = "Records" }; itemPrintReportHistory = new ToolStripMenuItem { Text = "Compliance history" }; buttonPrintMenuStrip.Items.AddRange(new ToolStripItem[] { itemPrintReportRecords, itemPrintReportHistory }); ButtonPrintMenuStrip = buttonPrintMenuStrip; #endregion // UpdateDetail(false); }