private void NumberSettingsComboOnSelectedIndexChanged(object sender, EventArgs e) { var selectedNumberingSystem = (string)((ComboBox)sender).SelectedItem; if (!selectedNumberingSystem.Equals(Strings.CustomNumberingSystem)) { _model.CurrentWsSetupModel.CurrentNumberingSystemDefinition = new NumberingSystemDefinition(CLDRNumberingSystems.FindNumberingSystemID(selectedNumberingSystem)); customDigits.Enabled = false; } else { _model.CurrentWsSetupModel.CurrentNumberingSystemDefinition = NumberingSystemDefinition.CreateCustomSystem(customDigits.GetDigits()); customDigits.Enabled = true; } BindNumbersTab(_model.CurrentWsSetupModel); }
private void CustomDigits_CustomDigitsChanged(object sender, EventArgs e) { _model.CurrentWsSetupModel.CurrentNumberingSystemDefinition = NumberingSystemDefinition.CreateCustomSystem(customDigits.GetDigits()); }