public void ShowDialogAsynch(object selectedObject, Action <object> onUpdated, Rectangle bounds, Control parent) { indi = (BaseChartIndicator)selectedObject; LoadListBoxItems(); var popup = new PopupEditorHost(cbx, 0, 0, bounds.Left, bounds.Top, control => GetListBoxValue(), onUpdated); popup.Show(parent, new Point(bounds.Left, bounds.Top)); }
public void ShowDialogAsynch(object selectedObject, Action <object> onUpdated, Rectangle bounds, Control parent) { indi = selectedObject as IChartIndicator; LoadItems(); var popup = new PopupEditorHost(lb, 0, 0, bounds.Left, bounds.Height, control => GetControlValue(), onUpdated); popup.Show(parent, new Point(bounds.Left, bounds.Top)); }