예제 #1
0
        public static DialogResult ShowSelectOperatorDialog(out Operator op)
        {
            SelectOperator f   = new SelectOperator();
            DialogResult   res = f.ShowDialog();

            op = f.retop;

            f.Dispose();

            return(res);
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Operator op;

            if (SelectOperator.ShowSelectOperatorDialog(out op) == DialogResult.OK)
            {
                this.nowOperator = op;
            }
            else
            {
                this.Close();
                return;
            }

            this.textBox_operator.Text = this.nowOperator.operator_name;
            this.textBox_ban_err("品番を入力してください");
        }