private void button1_Click(object sender, EventArgs e) { AddShiftTemplate addshifttemplate = new AddShiftTemplate(); addshifttemplate.FormBorderStyle = FormBorderStyle.FixedDialog; addshifttemplate.FormClosing += new FormClosingEventHandler(this.form_FormClosing); addshifttemplate.Show(); }
private void vorlageToolStripMenuItem_Click(object sender, EventArgs e) { AddShiftTemplate addshifttemplate = new AddShiftTemplate(); addshifttemplate.FormBorderStyle = FormBorderStyle.FixedDialog; addshifttemplate.FormClosing += new FormClosingEventHandler(this.mainform_FormClosingEvent); addshifttemplate.Show(); }