private void buttonOK_Click(object sender, EventArgs e) { WebDataEditorCheckedListbox wd = (WebDataEditorCheckedListbox)SelectedEditor; wd.UseDataFromDatabase = chkUseDb.Checked; wd.SetListItems(txtList.Lines); this.DialogResult = DialogResult.OK; }
private void loadData() { WebDataEditorCheckedListbox wd = (WebDataEditorCheckedListbox)SelectedEditor; querySelector.LoadQuery(wd); txtList.Text = wd.GetListItems(); chkUseDb.Checked = wd.UseDataFromDatabase; }
public DlgDataEditorCheckedListbox(WebDataEditorCheckedListbox editor) : base(editor) { InitializeComponent(); // if (editor == null) { editor = new WebDataEditorCheckedListbox(); SetSelection(editor); } loadData(); }
public static DlgSetEditorAttributes GetCheckedListDataDialog(DataEditor current, DataEditor caller) { WebDataEditorCheckedListbox c = current as WebDataEditorCheckedListbox; WebDataEditorCheckedListbox u = caller as WebDataEditorCheckedListbox; if (c == null) { c = (WebDataEditorCheckedListbox)caller.Clone(); } DlgDataEditorCheckedListbox dlg = new DlgDataEditorCheckedListbox(c); return(dlg); }