private async void ScreenshotScreen() { if (UserModel.IsLoggedIn()) { Image img = CaptureScreen.CaptureFullscreen(); var result = await ApiRequests.Instance.ImagePost(img); FileUploaded(result); } }
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); } }