DialogResult ICyParamEditHook_v1.EditParams(ICyInstEdit_v1 edit, ICyTerminalQuery_v1 termQuery, ICyExpressMgr_v1 mgr) { parameters = new MultAccParameters(edit); CyParamExprDelegate paramChange = delegate(ICyParamEditor custEditor, CyCompDevParam param) { parameters.GetParams(); }; ICyTabbedParamEditor editor = edit.CreateTabbedParamEditor(); editor.AddCustomPage("Properties", new MultAccEditingControl(parameters), paramChange, "Properties"); editor.AddDefaultPage("Built-in", "Built-in"); parameters.GetParams(); return(editor.ShowDialog()); }
DialogResult ICyParamEditHook_v1.EditParams(ICyInstEdit_v1 edit, ICyTerminalQuery_v1 termQuery, ICyExpressMgr_v1 mgr) { parameters = new MultAccParameters(edit); CyParamExprDelegate paramChange = delegate(ICyParamEditor custEditor, CyCompDevParam param) { parameters.GetParams(); }; ICyTabbedParamEditor editor = edit.CreateTabbedParamEditor(); editor.AddCustomPage("Properties", new MultAccEditingControl(parameters), paramChange, "Properties"); editor.AddDefaultPage("Built-in", "Built-in"); parameters.GetParams(); return editor.ShowDialog(); }
public MultAccEditingControl(MultAccParameters parameters) { control = new MultAccControl(parameters); parameters.control = control; control.Dock = DockStyle.Fill; }
public MultAccControl(MultAccParameters parameters) { InitializeComponent(); this.parameters = parameters; UpdateForm(); }