private void buttonEvents(object sender, EventArgs e) { ConditionFilterForm frm = new ConditionFilterForm(); frm.VariableNamesEvents += (evname) => { List <BaseUtils.TypeHelpers.PropertyNameInfo> list = new List <BaseUtils.TypeHelpers.PropertyNameInfo>(); list.Add(new BaseUtils.TypeHelpers.PropertyNameInfo("one:" + evname, "help on one")); list.Add(new BaseUtils.TypeHelpers.PropertyNameInfo("two:" + evname, "help on two")); return(list); }; frm.VariableNames = new List <BaseUtils.TypeHelpers.PropertyNameInfo>(); frm.VariableNames.Add(new BaseUtils.TypeHelpers.PropertyNameInfo("defone", "String", ConditionEntry.MatchType.Contains)); frm.VariableNames.Add(new BaseUtils.TypeHelpers.PropertyNameInfo("deftwo", "Number", ConditionEntry.MatchType.NumericEquals)); frm.VariableNames.Add(new BaseUtils.TypeHelpers.PropertyNameInfo("defthree", "help!")); List <string> events = new List <string>() { "eone", "etwo" }; frm.InitFilter("Name", this.Icon, events); theme.ApplyToForm(frm); if (frm.ShowDialog() == DialogResult.OK) { eventscond = frm.Result; } }
public TestAutoComplete() { InitializeComponent(); theme = new ThemeStandard(); theme.LoadBaseThemes(); theme.SetThemeByName("Elite Verdana"); theme.WindowsFrame = true; ExtendedControls.ThemeableFormsInstance.Instance = theme; list.Add("one"); list.Add("only"); list.Add("onynx"); list.Add("two"); list.Add("three"); list.Add("four"); list.Add("five"); list.Add("Aone"); list.Add("Btwo"); list.Add("Cthree"); list.Add("Dfour"); list.Add("Efive"); autoCompleteTextBox1.SetAutoCompletor(AutoList); autoCompleteTextBox1.KeyUp += AutoCompleteTextBox1_KeyUp; autoCompleteTextBox2.SetAutoCompletor(AutoList); autoCompleteTextBox2.FlatStyle = FlatStyle.Popup; autoCompleteTextBox2.KeyUp += AutoCompleteTextBox2_KeyUp; comboBoxCustom1.Items.AddRange(list); theme.ApplyToForm(this); }