async void saveAsTSB_Click(object sender, EventArgs e) { var file = ActionForm.GetGifSaveLocation(ActionForm.Action.SaveAs); if (string.IsNullOrEmpty(file)) { return; } await doSave(file); }
async Task Stop() { if (stopped) { return; } stopped = true; selectedRectangle = oversizedRect = Rectangle.Empty; captureT.Enabled = false; playPauseB.Visible = stopB.Visible = false; timeL.Text = ""; Invalidate(); await SaveAsync(ActionForm.GetGifSaveLocation()); }