Exemplo n.º 1
0
 /// <summary>
 /// Execute the command.
 /// </summary>
 public override void execute()
 {
     CadKit.Interfaces.IShadeModel model = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.IShadeModel;
     if (null != model)
     {
         model.Model = (this.Model == model.Model) ? CadKit.Interfaces.ShadeModel.Model.NONE : this.Model;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determine if the button is checked.
 /// </summary>
 protected override bool _isChecked()
 {
     CadKit.Interfaces.IShadeModel model = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.IShadeModel;
     return((null != model) && (model.Model == this.Model));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Determine if the button should be enabled.
 /// </summary>
 protected override bool _shouldBeEnabled()
 {
     CadKit.Interfaces.IShadeModel model = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.IShadeModel;
     return(null != model);
 }