예제 #1
0
                public ViewOperation(Ctrl.IContext con, Graphics.ViewOperations operation)
                    : base(con)
                {
                    this.OperationType = operation;
                    var viewop  = con.View.Operation as Graphics.StandardViewOperation;
                    var binding = new Graphics.ViewOperationBinding(operation, MouseButtons.Left, Keys.None);

                    this.Entered += (sender, e) => viewop.TemporaryBindings.Reset(binding);
                    this.Exited  += (sender, e) => viewop.TemporaryBindings.Clear();
                    this.Cursor   = GetCursor(operation);
                }
예제 #2
0
 public ViewOperation( Ctrl.IContext con, Graphics.ViewOperations operation )
     : base(con)
 {
     this.OperationType = operation;
       var viewop = con.View.Operation as Graphics.StandardViewOperation;
       var binding = new Graphics.ViewOperationBinding( operation, MouseButtons.Left, Keys.None );
       this.Entered += ( sender, e ) => viewop.TemporaryBindings.Reset( binding );
       this.Exited += ( sender, e ) => viewop.TemporaryBindings.Clear();
       this.Cursor = GetCursor( operation );
 }