Esempio n. 1
0
        private void punchCardLayoutButton_Click(object sender, EventArgs e)
        {
            PunchcardLayoutDialog dialog = new PunchcardLayoutDialog();
            PunchcardFormat       format = controller.GetPunchcardFormat();

            dialog.PunchcardFormat = format;
            DialogResult result = dialog.ShowDialog();

            if (result == DialogResult.OK && !format.Equals(dialog.PunchcardFormat))
            {
                controller.SetPunchcardFormat(dialog.PunchcardFormat);
            }

            dialog.Dispose();
        }
Esempio n. 2
0
        private void formatButton_Click(object sender, EventArgs e)
        {
            // Init dialog.
            PunchcardLayoutDialog dialog = new PunchcardLayoutDialog();

            dialog.PunchcardFormat = punchcardFormat;

            // show.
            DialogResult result = dialog.ShowDialog();

            // Get result if OK pressed.
            if (result == DialogResult.OK)
            {
                punchcardFormat = dialog.PunchcardFormat;
            }

            dialog.Dispose();
        }
Esempio n. 3
0
        private void punchCardLayoutButton_Click(object sender, EventArgs e)
        {
            PunchcardLayoutDialog dialog = new PunchcardLayoutDialog();
            PunchcardFormat format = controller.GetPunchcardFormat();

            dialog.PunchcardFormat = format;
            DialogResult result = dialog.ShowDialog();

            if (result == DialogResult.OK && !format.Equals(dialog.PunchcardFormat))
                controller.SetPunchcardFormat(dialog.PunchcardFormat);

            dialog.Dispose();
        }
Esempio n. 4
0
        private void formatButton_Click(object sender, EventArgs e)
        {
            // Init dialog.
            PunchcardLayoutDialog dialog = new PunchcardLayoutDialog();
            dialog.PunchcardFormat = punchcardFormat;

            // show.
            DialogResult result = dialog.ShowDialog();

            // Get result if OK pressed.
            if (result == DialogResult.OK) {
                punchcardFormat = dialog.PunchcardFormat;
            }

            dialog.Dispose();
        }