Example #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();
        }
Example #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();
        }
Example #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();
        }
        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();
        }