/// <summary> /// Select White Kill Counter on Top Rectangle /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnWhiteKillCounter_Click(object sender, EventArgs e) { using (var form = new ScreenGrabForm()) { form.Visible = false; var result = form.ShowDialog(); if (result == DialogResult.OK) { rectTopKillNumber = form.SelectedRectangle; pBKillCounterTopRight.Image = gcaptr.MakeScreenShot(rectTopKillNumber); } } }
/// <summary> /// Select red "KILL" /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnSelRedKill_Click(object sender, EventArgs e) { using (var form = new ScreenGrabForm()) { form.Visible = false; var result = form.ShowDialog(); if (result == DialogResult.OK) { rectCenterKill = form.SelectedRectangle; pBRedKill.Image = gcaptr.MakeScreenShot(rectCenterKill); } } }