Exemple #1
0
        private void tilingOptionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormTilingOptions form = new FormTilingOptions(tileSize, gapSize);

            form.FormClosed += Form_FormClosed;
            form.ShowDialog();
        }
Exemple #2
0
        private void Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            FormTilingOptions form = (FormTilingOptions)sender;

            if (form.OkPressed)
            {
                tileSize = form.tileSize;
                gapSize  = form.gapSize;
            }
        }