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); }
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 ); }