| 123456789101112131415161718192021222324252627 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SOTF_Savegame_Editor.PictureZBoxEventArgs {
- public class SelectionEventArgs {
- private Rectangle _selection;
- public SelectionEventArgs(Rectangle selection) {
- this._selection = selection;
- }
- public Rectangle Selection { get => _selection; }
- public int X { get => _selection.X; set => _selection.X = value; }
- public int Y { get => _selection.Y; set => _selection.Y = value; }
- public int Width { get => _selection.Width; set => _selection.Width = value; }
- public int Height { get => _selection.Height; set => _selection.Height = value; }
- public Point Location {
- get { return new Point(this._selection.X, this._selection.Y); }
- set { this._selection.X = value.X; this._selection.Y = value.Y; }
- }
- public Size Size {
- get { return new Size(this._selection.Width, this._selection.Width); }
- set { this._selection.Width = value.Width; this._selection.Height = value.Height; }
- }
- }
- }
|