protected override void OnPropertyButtonClicked(PropertyButtonClickedEventArgs e) { if (graphicNode != null) { Property a = e.PropertyEnum.Property; if (a.Name == "Stencil") { GraphicStencilChangeForm gscf = new GraphicStencilChangeForm(state.GraphicUnselectedThumbnails, state.GraphicSelectedThumbnails, state.ModelStencils, state.GraphicStencils, a.Value.DisplayString); if (gscf.ShowDialog() == System.Windows.Forms.DialogResult.OK) { graphicNode.Stencil = gscf.Value; NodeChanged(graphicNode); } } } }
protected virtual void RunButton() { Parent.Focus(); PropertyButtonClickedEventArgs eventArgs = new PropertyButtonClickedEventArgs(mOwnerPropertyEnum); mOwnerPropertyEnum.Property.Value.PreviousValue = mOwnerPropertyEnum.Property.Value.GetValue(); mOwnerPropertyEnum.Property.ParentGrid.OnPropertyButtonClicked(eventArgs); if (eventArgs.PropertyChanged) { if (mEdit != null) { mEdit.Text = mOwnerPropertyEnum.Property.Value.DisplayString; } mOwnerPropertyEnum.Property.ParentGrid.NotifyPropertyChanged(new PropertyChangedEventArgs(mOwnerPropertyEnum)); } mOwnerPropertyEnum.Property.ParentGrid.OnInPlaceCtrlFinishedEdition(); }
protected virtual void RunButton() { Parent.Focus(); PropertyButtonClickedEventArgs eventArgs = new PropertyButtonClickedEventArgs(mOwnerPropertyEnum); mOwnerPropertyEnum.Property.Value.PreviousValue = mOwnerPropertyEnum.Property.Value.GetValue(); mOwnerPropertyEnum.Property.ParentGrid.OnPropertyButtonClicked(eventArgs); if (eventArgs.PropertyChanged) { if (mEdit != null) mEdit.Text = mOwnerPropertyEnum.Property.Value.DisplayString; mOwnerPropertyEnum.Property.ParentGrid.NotifyPropertyChanged(new PropertyChangedEventArgs(mOwnerPropertyEnum)); } mOwnerPropertyEnum.Property.ParentGrid.OnInPlaceCtrlFinishedEdition(); }