private void NewLoadbankButton_Click(object sender, EventArgs e)
        {
            // create a new loadbank
            LoadBankForm frmLoadbanks = new LoadBankForm(); // initialise

            frmLoadbanks.newLoadbankFormState(true);        // call a method on the form
            frmLoadbanks.ShowDialog();                      // then show it ;)
            OutputResultsLabel.Text = "";
        }
        private void EditLoadbanksButton_Click(object sender, EventArgs e)
        {
            OutputResultsLabel.Text = "";
            LoadBankForm loadBankForm = new LoadBankForm();

            loadBankForm.newLoadbankFormState(false);
            loadBankForm.PassInLoadbankIndex(IndexOfSelected);
            loadBankForm.Show();
        }
        public void CreateNewLoadbank()
        {
            DialogResult result =
                MessageBox.Show("No loadbanks created, please create one!", "First Time Setup Required..",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Information,
                                MessageBoxDefaultButton.Button1);

            if (result == DialogResult.OK)
            {
                // create a new loadbank
                LoadBankForm frmLoadbanks = new LoadBankForm();
                frmLoadbanks.newLoadbankFormState(true);
                frmLoadbanks.ShowDialog();
            }
        }