private void FigureItems_SelectionChanged(object sender, SelectionChangedEventArgs e) { var selected = FigureItems.SelectedItem; IFigure selectedFigure = selected as IFigure; if (selectedFigure != null) { selectedFigure.Selected = true; } pg.Show(selectedFigure, CurrentDrawing.ActionManager); //FigureItems.SelectedValue = selectedFigure; CurrentDrawing.RaiseSelectionChanged(CurrentDrawing.GetSelectedFigures()); }
public void ShowProperties(IEnumerable <object> selection) { try { PropertyGrid.Show(selection, CurrentDrawing.ActionManager); } catch (Exception ex) { CurrentDrawing.RaiseError(this, ex); } }
public virtual void ShowProperties(object selection) { try { PropertyGrid.Show(selection, CurrentDrawing.ActionManager); } catch (Exception ex) { CurrentDrawing.RaiseError(this, ex); } }
public void Done() { Parent.Inputs = Parent.behavior.GetSelection(); Parent.behavior = new MacroResultSelector(Parent.Drawing, Parent.Inputs); var dialog = new SelectResultsDialog(Parent); if (PropertyGrid != null) { PropertyGrid.Show(dialog, null); } }
public void EditStyleButton() { var drawingHost = Canvas.Parent as DrawingHost; if (drawingHost != null) { if (PropertyGrid != null) { Style.CurrentEditInfo.ActionManager = this.Drawing.ActionManager; Style.CurrentEditInfo.ParentObject = this; Style.CurrentEditInfo.PropertyGrid = PropertyGrid; PropertyGrid.Show(this.Style, this.Drawing.ActionManager); } } }
public void OK() { PropertyGrid.Show(null, null); OKClicked(); }