Example #1
0
        private void btnNewWeighing_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            CreateWeighing CreateWeighingForm = new CreateWeighing();

            //weighingForm.WindowState = FormWindowState.Maximized;
            CreateWeighingForm.Show();

            Cursor.Current = Cursors.Default;
        }
Example #2
0
        private void MenuItem_WeighingCreate_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "راه اندازی توزین جدید...";
            statusStrip1.Refresh();
            Cursor.Current = Cursors.WaitCursor;

            this.IsMdiContainer = true;
            this.HScroll        = false;
            this.VScroll        = false;
            CreateWeighing CreateWeighingForm = new CreateWeighing();

            //weighingForm.WindowState = FormWindowState.Maximized;
            CreateWeighingForm.MdiParent = this;
            CreateWeighingForm.Show();

            toolStripStatusLabel1.Text = "";
            statusStrip1.Refresh();
            Cursor.Current = Cursors.Default;
        }