public EditionForm(CheckListRevision edition) { InitializeComponent(); _edition = edition; if (_edition.Type == RevisionType.Edition) { Text = "Edition Form"; label1.Text = "Edition"; } else { label1.Text = "Revision"; Text = "Revision Form"; } metroTextBoxEditionNumber.Enabled = dateTimePickerEditionDate.Enabled = dateTimePickerEditionEff.Enabled = edition.Status == EditionRevisionStatus.Temporary || edition.Status == EditionRevisionStatus.Current; UpdateInformation(); }
public CheckListIcaoRevisionForm(int operatorId, CheckListRevision parent, SmartCore.CAA.StandartManual.StandartManual manual) { _operatorId = operatorId; _parent = parent; _manual = manual; InitializeComponent(); _animatedThreadWorker.DoWork += AnimatedThreadWorkerDoLoad; _animatedThreadWorker.RunWorkerCompleted += BackgroundWorkerRunWorkerLoadCompleted; _animatedThreadWorker.RunWorkerAsync(); }
public CheckListRevisionEditForm(int operatorId, CheckListRevision parent, CommonCollection <CheckLists> added, SmartCore.CAA.StandartManual.StandartManual manual) { _operatorId = operatorId; _parent = parent; _manual = manual; _updateChecks.AddRange(added.ToList()); InitializeComponent(); _animatedThreadWorker.DoWork += AnimatedThreadWorkerDoLoad; _animatedThreadWorker.RunWorkerCompleted += BackgroundWorkerRunWorkerLoadCompleted; _animatedThreadWorker.RunWorkerAsync(); }
public CheckListSAFARevEditForm(CheckLists check, CheckListRevision revision) { InitializeComponent(); _currentCheck = check; _revision = revision; UpdateInformation(); if (_revision.Status == EditionRevisionStatus.Current || _revision.Status == EditionRevisionStatus.Previous) { foreach (var c in this.Controls.OfType <Control>().Where(i => !(i.GetType() == typeof(Button)))) { if (c.GetType().ToString() == "MetroFramework.Forms.MetroForm+MetroFormButton") { continue; } c.Enabled = false; } } }
public EditionRevisionRecordListScreen(Operator currentOperator, CheckListRevision parent, int operatorId, SmartCore.CAA.StandartManual.StandartManual manual) : this() { if (currentOperator == null) { throw new ArgumentNullException("currentOperator"); } _parent = parent; _operatorId = operatorId; _manual = manual; aircraftHeaderControl1.Operator = currentOperator; statusControl.ShowStatus = false; labelTitle.Visible = false; 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 (parent.Status == EditionRevisionStatus.Previous || (parent.Status == EditionRevisionStatus.Current && parent.Type == RevisionType.Revision)) { buttonRevison.Visible = pictureBox2.Visible = buttonAddNew.Visible = pictureBox4.Visible = false; } InitListView(); UpdateInformation(); }