Exemple #1
0
        private void جردسنوىToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            MonthReports viewForm = null;

            if (viewForm == null)
            {
                viewForm = new MonthReports();

                if (this.ActiveMdiChild != null)
                {
                    this.ActiveMdiChild.Close();
                }

                viewForm.MdiParent = this;
            }
            viewForm.Show();

            Cursor.Current = Cursors.Default;
        }
 private void button2_Click(object sender, EventArgs e)
 {
     View.MonthReports view = new MonthReports();
     view.ShowDialog();
 }