private void tilingOptionsToolStripMenuItem_Click(object sender, EventArgs e) { FormTilingOptions form = new FormTilingOptions(tileSize, gapSize); form.FormClosed += Form_FormClosed; form.ShowDialog(); }
private void Form_FormClosed(object sender, FormClosedEventArgs e) { FormTilingOptions form = (FormTilingOptions)sender; if (form.OkPressed) { tileSize = form.tileSize; gapSize = form.gapSize; } }