Example #1
0
        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));
        }
Example #2
0
        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));
        }