/// <summary> /// </summary> /// <param name="animatedThreadWorker"></param> /// <param /// name="checkListAuditType"> /// </param> public AuditListView(AnimatedThreadWorker animatedThreadWorker, CheckListAuditType checkListAuditType) : this() { _animatedThreadWorker = animatedThreadWorker; _checkListAuditType = checkListAuditType; SortDirection = SortDirection.Asc; OldColumnIndex = 1; this.radGridView1.MasterTemplate.GroupComparer = new AuditGroupComparer((int)SortDirection); }
public CheckListAuditPublishListView(CAAAudit audit, int operatorId, CheckListAuditType type) { _audit = audit; _operatorId = operatorId; _type = type; SortDirection = SortDirection.Desc; OldColumnIndex = 0; EnableCustomSorting = true; InitializeComponent(); }
/// <summary> /// </summary> /// <param name="animatedThreadWorker"></param> /// <param /// name="checkListAuditType"> /// </param> public CheckListAuditView(AnimatedThreadWorker animatedThreadWorker, CheckListAuditType type) { _animatedThreadWorker = animatedThreadWorker; _type = type; InitializeComponent(); ColumnIndexes = new List <string>() { "Section №", "Part №", "SubPart №", "Item №" }; SortDirection = SortDirection.Desc; EnableCustomSorting = true; this.radGridView1.MasterTemplate.GroupComparer = new GroupComparer(); }
public CheckListAuditPublishListScreen(Operator currentOperator, int operatorId, CAAAudit selectedItem, CheckListAuditType type) { _operatorId = operatorId; _selectedItem = selectedItem; _type = type; InitializeComponent(); if (currentOperator == null) { throw new ArgumentNullException("currentOperator"); } aircraftHeaderControl1.Operator = currentOperator; _auditId = selectedItem.ItemId; InitListView(); labelTitle.Text = $"Audit Status : {selectedItem.StatusName}"; AnimatedThreadWorker.RunWorkerAsync(); }
/// <summary> /// Создаёт экземпляр элемента управления, отображающего список директив /// </summary> public CheckListAuditScreen(Operator currentOperator, int operatorId, int parentId, CheckListAuditType type, int?stage = null) : this() { if (currentOperator == null) { throw new ArgumentNullException("currentOperator"); } aircraftHeaderControl1.Operator = currentOperator; _operatorId = operatorId; _parentId = parentId; _type = type; _stage = stage; statusControl.ShowStatus = false; labelTitle.Visible = true; buttonPel.Visible = _type == CheckListAuditType.Admin; UpdateInformation(); }
public AuditListScreen(Operator currentOperator, int?operatorId, AuditType type, CheckListAuditType checkListAuditType, bool editable = false) : this() { if (currentOperator == null) { throw new ArgumentNullException("currentOperator"); } _type = type; aircraftHeaderControl1.Operator = currentOperator; statusControl.ShowStatus = false; labelTitle.Visible = false; _filter = new CommonFilterCollection(typeof(IAuditFilterParams)); _operatorId = operatorId; _checkListAuditType = checkListAuditType; buttonAddNew.Visible = buttonDeleteSelected.Visible = pictureBox1.Visible = editable; InitToolStripMenuItems(); InitListView(); UpdateInformation(); }
public CheckListICAOAuditView(AnimatedThreadWorker worker, CheckListAuditType type) : base(worker, type) { }