예제 #1
0
        private void GoButton_Click(object sender, EventArgs e)
        {
            string name = NameBox.Text;
            string plane = PlaneBox.Text;
            // System.Diagnostics.Debug.WriteLine(name);
            // System.Diagnostics.Debug.WriteLine(plane);

            this.Hide();

            var wf = new WorkOrderForm(name, plane);
            // set new close event here
            wf.FormClosed += (s, args) => this.Close();
            wf.Show();
        }
예제 #2
0
        private void GoButton_Click(object sender, EventArgs e)
        {
            string name  = NameBox.Text;
            string plane = PlaneBox.Text;

            // System.Diagnostics.Debug.WriteLine(name);
            // System.Diagnostics.Debug.WriteLine(plane);


            this.Hide();

            var wf = new WorkOrderForm(name, plane);

            // set new close event here
            wf.FormClosed += (s, args) => this.Close();
            wf.Show();
        }