示例#1
0
        private async void ScreenshotScreen()
        {
            if (UserModel.IsLoggedIn())
            {
                Image img    = CaptureScreen.CaptureFullscreen();
                var   result = await ApiRequests.Instance.ImagePost(img);

                FileUploaded(result);
            }
        }
示例#2
0
        private async void AreaSelectedHandler(Rectangle rect)
        {
            this._asForm = null;
            if (!rect.IsEmpty)
            {
                Image img    = CaptureScreen.CaptureRectangle(rect);
                var   result = await ApiRequests.Instance.ImagePost(img);

                FileUploaded(result);
            }
        }