Example #1
0
        private void btnCreateNewPlot_Click(object sender, EventArgs e)
        {
            frmPlot newPlotForm = new frmPlot(this);

            newPlotForm.WindowState = FormWindowState.Normal;

            newPlotForm.ShowDialog();
        }
Example #2
0
 private void btnEditPlot_Click(object sender, EventArgs e)
 {
     if (dgJobPlots.SelectedRows.Count == 0)
     {
         MessageBox.Show("You must select a Plot before editing!", "Warning!", MessageBoxButtons.OK);
     }
     else
     {
         GetSelectedPlotID();
         frmPlot editPlotForm = new frmPlot(this);
         editPlotForm.Top         = 50;
         editPlotForm.WindowState = FormWindowState.Normal;
         editPlotForm.Width       = this.Width - 100;
         editPlotForm.ShowDialog();
     }
 }
Example #3
0
        private void plotsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CloseOpenForms();
            frmPlot plotForm = new frmPlot();

            plotForm.Left = 0;
            plotForm.Top  = 0;
            Rectangle recNew = new Rectangle();

            recNew         = this.ClientRectangle;
            recNew.Height -= 4;
            recNew.Width  -= 4;
            plotForm.Size  = recNew.Size;


            plotForm.FormBorderStyle = FormBorderStyle.None;
            plotForm.MdiParent       = this;
            plotForm.Show();
        }