private FScreen CaptureScreen(int index) { var fcapture = new FScreen(index); fcapture.SaveToClipboard = chk_save_clipboard.Checked; fcapture.SaveToFolder = chk_save_to.Checked; fcapture.Folder = t_folder.Text; fcapture.FixRect = t_fix_rect.Checked; fcapture.FixWidth = decimal.ToInt32(t_fix_width.Value); fcapture.FixHeight = decimal.ToInt32(t_fix_height.Value); fcapture.Transform = chk_transform.Checked; fcapture.TransformWidth = decimal.ToInt32(t_trans_width.Value); fcapture.TransformHeight = decimal.ToInt32(t_trans_height.Value); fcapture.LineColor = LineColor; fcapture.ShowInTaskbar = false; fcapture.FormClosed += Fcapture_FormClosed; fcapture.Show(); return(fcapture); }
private void Fcapture_FormClosed(object sender, FormClosedEventArgs e) { if (fcaptures.Contains(sender)) { fcaptures.Remove((FScreen)sender); } CloseChild(); FScreen.ClearTouchID(); }