Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int op;

            try
            {
                if (SelectOperator.ShowSelectOperatorDialog(out op) == DialogResult.OK)
                {
                    this.nowOperator = op;
                }
                else
                {
                    this.Close();
                    return;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Close();
                return;
            }
            var context = new DBClassDataContext(Globals.ConnectionString);

            this.textBox_operator.Text = [email protected](n => n.operator_id == this.nowOperator).operator_name;
            this.textBox_ban_err("品番を入力してください");
        }
Exemple #2
0
        public static DialogResult ShowSelectOperatorDialog(out int op)
        {
            SelectOperator f   = new SelectOperator();
            DialogResult   res = f.ShowDialog();

            op = f.retop_id;

            f.Dispose();

            return(res);
        }