public void RefreshUIFromCompanyOrPersonalOptions() { CtrlCurrency.UpdateCurrencyFormatFromCache(); if (_Nullable) { UpdateDisplayFromNullableValue(); return; } UpdateDisplayFromValue(); }
public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle) { base.InitializeEditingControl(rowIndex, initialFormattedValue, dataGridViewCellStyle); CtrlCurrency ctrlCurrency = DataGridView.EditingControl as CtrlCurrency; if (Value != null) { ctrlCurrency.Text = Value.ToString(); } }
private void Init() { //CurrencyCacheListManager.Instance.WeakSubscribe(new EventHandler(CtrlCurrency_CacheUpdatedEvent)); CtrlCurrency.UpdateCurrencyFormatFromCache(); //OptionControlsManager.Instance.RegisterOptionControls(this); }
private void CtrlCurrency_CacheUpdatedEvent(object sender, EventArgs e) { CtrlCurrency.UpdateCurrencyFormatFromCache(); }