Beispiel #1
0
        private void LoadJobsForm()
        {
            CloseOpenForms();
            frmJobs jobsForm = new frmJobs();

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

            recNew                   = this.ClientRectangle;
            recNew.Height           -= 4;
            recNew.Width            -= 4;
            jobsForm.Size            = recNew.Size;
            jobsForm.FormBorderStyle = FormBorderStyle.None;
            jobsForm.MdiParent       = this;
            jobsForm.Show();
        }
Beispiel #2
0
        public frmPlot(Form callingForm)
        {
            Type frmType = callingForm.GetType();

            switch (frmType.Name.ToLower())
            {
            case "frmjobs":
                jobForm = callingForm as frmJobs;
                break;

            case "frmaddjobplot":
                mainForm = callingForm as frmAddJobPlot;
                break;
            }
            //mainForm = callingForm as frmAddJobPlot;
            if (jobForm != null)
            {
                selectedPlotID = jobForm.SelectedPlotId;
                selectedPlot   = new Plot(selectedPlotID);
            }
            InitializeComponent();
        }
Beispiel #3
0
 public frmRecurringJobConfig(Form callingForm)
 {
     mainForm = callingForm as frmJobs;
     InitializeComponent();
 }
Beispiel #4
0
 public frmDeadTime(Form callingForm)
 {
     mainForm = callingForm as frmJobs;
     InitializeComponent();
 }
Beispiel #5
0
 public frmAddJobPlot(Form callingForm)
 {
     mainForm = callingForm as frmJobs;
     InitializeComponent();
 }