private void جرداليوميةToolStripMenuItem_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; View.DayReportsForm viewForm = null; if (viewForm == null) { viewForm = new DayReportsForm(); if (this.ActiveMdiChild != null) { this.ActiveMdiChild.Close(); } viewForm.MdiParent = this; } viewForm.Show(); Cursor.Current = Cursors.Default; }
private void button1_Click(object sender, EventArgs e) { View.DayReportsForm view = new DayReportsForm(); view.ShowDialog(); }