/// <summary> /// Изменение автоподстановки индекса контрольных точек /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// private void editKeypointIndexToolStripMenuItem_Click(object sender, EventArgs e) { FormKeypointIndex form = new FormKeypointIndex(kpIndexLeft, kpIndexRight); form.FormClosed += Form_FormClosed; form.ShowDialog(); }
private void Form_FormClosed(object sender, FormClosedEventArgs e) { FormKeypointIndex form = (FormKeypointIndex)sender; if (form.OkPressed) { kpIndexLeft = form.indexLeft; kpIndexRight = form.indexRight; } }