protected override void OnActivate() { this.cursorMouseDown = PdnResources.GetCursor("Cursors.PanToolCursorMouseDown.cur"); this.cursorMouseUp = PdnResources.GetCursor("Cursors.PanToolCursor.cur"); this.cursorMouseInvalid = PdnResources.GetCursor("Cursors.PanToolCursorInvalid.cur"); base.Cursor = this.cursorMouseUp; base.OnActivate(); }
public PanControl() { if (!base.DesignMode) { this.handCursor = PdnResources.GetCursor("Cursors.PanToolCursor.cur"); this.handMouseDownCursor = PdnResources.GetCursor("Cursors.PanToolCursorMouseDown.cur"); this.Cursor = this.handCursor; } this.InitializeComponent(); this.RefreshDragAreaRect(); }
protected override void OnActivate() { this.colorPickerToolCursor = PdnResources.GetCursor("Cursors.ColorPickerToolCursor.cur"); base.Cursor = this.colorPickerToolCursor; this.previewRenderer = new PickerPreviewCanvasLayer(); base.DocumentCanvas.CanvasLayers.Add(this.previewRenderer); this.allLayersDocumentRenderer = base.Document.CreateRenderer(); this.currentSampleSize = base.ToolSettings.PixelSampleMode.Value; this.CreateAllLayersRenderSurface(this.currentSampleSize); base.ToolSettings.PixelSampleMode.ValueChangedT += new ValueChangedEventHandler <PixelSampleMode>(this.OnPixelSampleModeValueChangedT); base.OnActivate(); }
protected override void OnActivate() { this.cursorZoom = PdnResources.GetCursor("Cursors.ZoomToolCursor.cur"); this.cursorZoomIn = PdnResources.GetCursor("Cursors.ZoomInToolCursor.cur"); this.cursorZoomOut = PdnResources.GetCursor("Cursors.ZoomOutToolCursor.cur"); this.cursorZoomPan = PdnResources.GetCursor("Cursors.ZoomOutToolCursor.cur"); base.Cursor = this.cursorZoom; base.OnActivate(); this.outline = new Selection(); this.outlineRenderer = new SelectionCanvasLayer(); this.outlineRenderer.Selection = this.outline; base.DocumentCanvas.CanvasLayers.Add(this.outlineRenderer); }
protected void SetCursors(string cursorMouseUpResName, string cursorMouseUpMinusResName, string cursorMouseUpPlusResName, string cursorMouseDownResName) { DisposableUtil.Free <Cursor>(ref this.cursorMouseUp); if (cursorMouseUpResName != null) { this.cursorMouseUp = PdnResources.GetCursor(cursorMouseUpResName); } DisposableUtil.Free <Cursor>(ref this.cursorMouseUpMinus); if (cursorMouseUpMinusResName != null) { this.cursorMouseUpMinus = PdnResources.GetCursor(cursorMouseUpMinusResName); } DisposableUtil.Free <Cursor>(ref this.cursorMouseUpPlus); if (cursorMouseUpPlusResName != null) { this.cursorMouseUpPlus = PdnResources.GetCursor(cursorMouseUpPlusResName); } DisposableUtil.Free <Cursor>(ref this.cursorMouseDown); if (cursorMouseDownResName != null) { this.cursorMouseDown = PdnResources.GetCursor(cursorMouseDownResName); } }