protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
리턴 | void |
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(); }
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(); }