/// <summary> /// ui修改 /// </summary> /// <param name="uic"></param> private void FixImage(UiControl uic) { this.Hide(); CaptureForm capture = GetCaptureForm(); if (capture.ShowDialog() == DialogResult.OK) { uic.uiInfo = new UiInfo(capture._captureImg, capture._captureLoca, capture._clickLoca); uic.UiImage = capture._captureImg; } this.Show(); }
/// <summary> /// UI追加 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnUIAdd_Click(object sender, EventArgs e) { this.Hide(); Thread.Sleep(500); CaptureForm cutter = GetCaptureForm(); if (cutter.ShowDialog() == DialogResult.OK) { AddNewUI(cutter._captureImg, cutter._captureLoca, cutter._clickLoca, false); } this.Show(); }