public ScreenCapture(TrayIcon trayIcon, PhotoUploader photoUploader, CaptureRectangleFactory captureRectangleFactory)
        {
            _photoUploader = photoUploader;
            _captureRectangleFactory = captureRectangleFactory;
            InitializeComponent();

            SetupIconEvents(trayIcon);

            SetupHotkeys();

            TopMost = true;

            FormBorderStyle = FormBorderStyle.None;
            StartPosition = FormStartPosition.Manual;

            SetupCaptureCanvas();
            SetupActionBox();
        }
        public ScreenCapture(TrayIcon trayIcon, PhotoUploader photoUploader, Rectangle captureRectangle)
        {
            _photoUploader = photoUploader;
            InitializeComponent();

            SetupIconEvents(trayIcon);

            SetupHotkeys();
            SetupGlobalHotkey();

            TopMost = true;

            FormBorderStyle = FormBorderStyle.None;
            StartPosition   = FormStartPosition.Manual;

            Location = captureRectangle.Location;
            Size     = captureRectangle.Size;

            _canvas.Size = Size;
            SetupCaptureCanvas(_canvas);
            ScreenToCanvas(_canvas);
            SetupActionBox();
        }
        public ScreenCapture(TrayIcon trayIcon, PhotoUploader photoUploader, Rectangle captureRectangle)
        {
            _photoUploader = photoUploader;
            InitializeComponent();

            SetupIconEvents(trayIcon);

            SetupHotkeys();
            SetupGlobalHotkey();

            TopMost = true;

            FormBorderStyle = FormBorderStyle.None;
            StartPosition = FormStartPosition.Manual;

            Location = captureRectangle.Location;
            Size = captureRectangle.Size;

            _canvas.Size = Size;
            SetupCaptureCanvas(_canvas);
            ScreenToCanvas(_canvas);
            SetupActionBox();
        }