public void SearchType() { string rt = StaticVariablesClass.ConvertRawTypeToRawName(DomainObject.FieldType); int inx = cbTypes.FindStringExact(rt); cbTypes.SelectedIndex = inx; gbLength.Enabled = StaticVariablesClass.HasRawLength(cbTypes.Text.Trim()); }
public void SetControlsEnabled() { gbLength.Enabled = StaticVariablesClass.HasRawLength(cbTypes.Text.Trim()); cbCharSet.Enabled = cbTypes.Text.IndexOf("CHAR") >= 0; cbCollate.Enabled = cbTypes.Text.IndexOf("CHAR") >= 0; }