protected IDictionary <string, string> GetAllHtmlAttributes() { var attributes = new Dictionary <string, string>(HtmlAttributes); var builder = new StringBuilder(); addCssClasses(builder, attributes); if (!attributes.ContainsKey("id") && DefaultId.IsNotEmpty()) { attributes.Add("id", DefaultId); } return(attributes); }
private void ChainToSID_Load(object sender, EventArgs e) { dataGridViewValues.AutoGenerateColumns = false; comboBoxAbility.SelectedIndex = 0; comboBoxGender.DisplayMember = "Name"; comboBoxGender.ValueMember = "Index"; comboBoxGender.DataSource = new BindingSource(GenderGenderRatio.GenderGenderRatioCollection(), null); comboBoxGender.SelectedIndex = 0; comboBoxNature.DisplayMember = "Key"; comboBoxNature.ValueMember = "Value"; comboBoxNature.DataSource = new BindingSource(Nature.NatureCollection(), null); comboBoxNature.SelectedIndex = 0; maskedTextBoxID.Text = DefaultId.ToString(); }