private void EhShowCustomPenDialog(object sender, EventArgs e) { var ctrler = new PenAllPropertiesController(Pen.Clone()) { ShowPlotColorsOnly = _showPlotColorsOnly, ViewObject = new PenAllPropertiesControl() }; if (Current.Gui.ShowDialog(ctrler, "Edit pen properties")) { Pen = (PenX)ctrler.ModelObject; } }
private void EhShowCustomPenDialog(object sender, EventArgs e) { PenAllPropertiesController ctrler = new PenAllPropertiesController((PenX)this.Pen.Clone()); ctrler.ShowPlotColorsOnly = this._showPlotColorsOnly; ctrler.ViewObject = new PenAllPropertiesControl(); if (Current.Gui.ShowDialog(ctrler, "Edit pen properties")) { this.Pen = (PenX)ctrler.ModelObject; } }
public void EhView_ShowFullPenDialog() { var ctrl = new PenAllPropertiesController(_tempDoc); Current.Gui.ShowDialog(ctrl, "Pen properties"); if (null != _view) _view.DocPen = _tempDoc; }