void OnProductControlCommit(object sender, EventArgs e) { SelectProductControl control = (SelectProductControl)sender; string value = (string)control.EditValue; ReplaceRange(value, control.Range); }
PopupControlBase CreateSelectProductControl() { SelectProductControl result = new SelectProductControl(products); result.Commit += OnProductControlCommit; return(result); }