private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _batchForm      = new CreateBatch(this);
     this.Enabled    = false;
     _batchForm.Text = "Create Batch";
     _batchForm.Focus();
     _batchForm.Show();
 }
        public AddLineForm(CreateBatch form)
        {
            InitializeComponent();

            _parentForm         = form;
            _parentForm.Enabled = false;
            this.Focus();
            this.Show();
        }
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFile = new OpenFileDialog();

            if (openFile.ShowDialog() == DialogResult.OK)
            {
                string[] lines = System.IO.File.ReadAllLines(openFile.FileName);

                _batchForm      = new CreateBatch(this, lines);
                this.Enabled    = false;
                _batchForm.Text = "Create Batch";
                _batchForm.Focus();
                _batchForm.Show();
            }
            else
            {
                MessageBox.Show("Impossible load this file", "Error",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }