protected override void InitData() { _accountsPresenter.DisplayActive(); _budgetItemsPresenter.DisplayActive(); _budgetSourcesPresenter.Display(); if (KeyValue == null) { return; } _budgetSourcePresenter.Display(KeyValue); }
/// <summary> /// Initializes the data. /// </summary> protected override void InitData() { _budgetSourceCategoriesPresenter.DisplayActive(); //_banksPresenter.DisplayActive(true); //_projectsPresenter.DisplayActive(); _budgetSourcesPresenter.DisplayActive(); if (KeyValue != null) { _budgetSourcePresenter.Display(KeyValue); } else { if (CurrentNode != null) { txtBudgetSourceCode.Text = ((BudgetSourceModel)CurrentNode).BudgetSourceCode; gridLookUpEditParentId.EditValue = ((BudgetSourceModel)CurrentNode).BudgetSourceId; gridLookUpEditBudgetSourceCategoryId.EditValue = ((BudgetSourceModel)CurrentNode).BudgetSourceCategoryId; cboBudgetSourceProperty.SelectedIndex = ((BudgetSourceModel)CurrentNode).BudgetSourceProperty; } } }