protected override void InitData() { base.InitData(); if (MasterBindingSource.Current != null) { var fixedAssetArmortizationId = ((FixedAssetArmortizationModel)MasterBindingSource.Current).RefId; KeyValue = fixedAssetArmortizationId.ToString(CultureInfo.InvariantCulture); _keyForSend = KeyValue; RefId = long.Parse(KeyValue); } else { _keyForSend = RefID.ToString(); } _fixedAssetsPresenter.DisplayByActiveWithFixedAssetCurrency(false); _budgetItemsPrensenter.Display(3, true); _cboCurrencyCode.Items.Add(CurrencyLocal); if (CurrencyLocal != CurrencyAccounting) { _cboCurrencyCode.Items.Add(CurrencyAccounting); } _fixedAssetArmortizationPresenter.Display(long.Parse(KeyValue)); CurrencyCode = CurrencyLocal; cboCurrency.EditValue = CurrencyLocal; }