protected override void AnimatedThreadWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (_type == CheckListType.Routine) { buttonAddNew.Visible = true; } if (_manual.CheckUIType == CheckUIType.Iosa) { _filter = new CommonFilterCollection(typeof(ICheckListFilterParams)); } else if (_manual.CheckUIType == CheckUIType.Safa) { _filter = new CommonFilterCollection(typeof(ICheckListSafaFilterParams)); } else if (_manual.CheckUIType == CheckUIType.Icao) { _filter = new CommonFilterCollection(typeof(ICheckListIcaoFilterParams)); } if (_directivesViewer == null) { InitToolStripMenuItems(); InitListView(); } _directivesViewer.SetItemsArray(_resultDocumentArray.ToArray()); headerControl.PrintButtonEnabled = _directivesViewer.ItemsCount != 0; _directivesViewer.Focus(); }
protected override void AnimatedThreadWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { pictureBox3.Visible = false; buttonRevisions.Visible = false; this.headerControl.ShowEditButton = true; this.headerControl.EditButtonClick += HeaderControl_EditButtonClick; pictureBox6.Visible = true; buttonPel.Visible = true; labelTitle.Text = $"Audit Status : {_audit.StatusName}"; labelTitle.Visible = true; if (_manual.CheckUIType == CheckUIType.Iosa) { _filter = new CommonFilterCollection(typeof(ICheckListFilterParams)); } else if (_manual.CheckUIType == CheckUIType.Safa) { _filter = new CommonFilterCollection(typeof(ICheckListSafaFilterParams)); } else if (_manual.CheckUIType == CheckUIType.Icao) { _filter = new CommonFilterCollection(typeof(ICheckListIcaoFilterParams)); } if (_directivesViewer == null) { InitToolStripMenuItems(); InitListView(); } if (_directivesViewer is CheckListAuditView lite) { lite.AuditId = _parentId; lite.IsAuditCheck = (_routineAudit?.Type == ProgramType.CAAKG || _routineAudit?.Type == ProgramType.IOSA); } else if (_directivesViewer is CheckListSAFAAuditView view) { view.AuditId = _parentId; view.IsAuditCheck = (_routineAudit?.Type == ProgramType.CAAKG || _routineAudit?.Type == ProgramType.IOSA); } else if (_directivesViewer is CheckListICAOAuditView icao) { icao.AuditId = _parentId; icao.IsAuditCheck = (_routineAudit?.Type == ProgramType.CAAKG || _routineAudit?.Type == ProgramType.IOSA); } _directivesViewer.SetItemsArray(_resultDocumentArray.ToArray()); headerControl.PrintButtonEnabled = _directivesViewer.ItemsCount != 0; _directivesViewer.Focus(); }
protected override void AnimatedThreadWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { _toolStripMenuItemAddInitial.Items.Clear(); foreach (var initialOrder in _initialOrders) { var item = new RadMenuItem(initialOrder.Title); _toolStripMenuItemAddInitial.Items.Add(item); } _toolStripMenuItemAddQuotation.Items.Clear(); foreach (var requestForQuotation in _requestForQuotations) { var item = new RadMenuItem(requestForQuotation.Title); _toolStripMenuItemAddQuotation.Items.Add(item); } _directivesViewer.SetItemsArray(_resultProductArray.ToArray()); _directivesViewer.Focus(); }
protected override void AnimatedThreadWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { _directivesViewer.SetItemsArray(_resultProductArray.ToArray()); _directivesViewer.Focus(); }