protected override void InitData() { _activitysPresenter.DisplayActive(true); IsActive = true; if (KeyValue != null) { _activityPresenter.Display(Convert.ToInt32(KeyValue)); } }
/// <summary> /// Handles the Load event of the FrmS106H1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void FrmS106H1_Load(object sender, EventArgs e) { _budgetSourcesPresenter.DisplayActive(); _budgetChaptersPresenter.DisplayByIsActive(true); _budgetKindItemsPresenter.DisplayActive(); _ActivityPresenter.DisplayActive(true); cboBudgetSource.EditValue = @"<<Tổng hợp>>"; cboBudgetChapter.EditValue = @"<<Tổng hợp>>"; cboBudgetKindItem.EditValue = @"<<Tổng hợp>>"; cboActivity.EditValue = @"<<Tổng hợp>>"; }
/// <summary> /// Handles the Load event of the FrmS51H control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> private void FrmS51H_Load(object sender, EventArgs e) { _inventoryItemCategoriesPresenter.Display(true); _activitiesPresenter.DisplayActive(true); cboActivity.EditValue = @"00000000-0000-0000-0000-000000000000"; cboInventoryType.EditValue = @"00000000-0000-0000-0000-000000000000"; _inventoryItemsPresenter.DisplayByIsActive(true); Selection = new GridCheckMarksSelection(gridInventoryView); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; gridInventoryView.OptionsSelection.EnableAppearanceFocusedRow = true; gridInventoryView.OptionsSelection.EnableAppearanceFocusedCell = false; }