예제 #1
0
 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();
        }
예제 #3
0
        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);
            }
        }