/// <summary> /// Execute the command. /// </summary> public override void execute() { CadKit.Interfaces.ICamera camera = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.ICamera; if (null != camera) { camera.camera(this.Option); } }
/// <summary> /// Determine if the button should be enabled. /// </summary> protected override bool _shouldBeEnabled() { CadKit.Interfaces.ICamera camera = CadKit.Documents.Manager.Instance.ActiveView as CadKit.Interfaces.ICamera; return(null != camera); }