Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MessageBoxButtons messbutton = MessageBoxButtons.OKCancel;
            DialogResult dr = MessageBox.Show("確定修改廠區信息嗎?", "否", messbutton);
            if (dr == DialogResult.OK)
            {
                mModel.Factory = comboBox1.SelectedIndex.ToString();
                mModel.LineId = comboBox2.SelectedIndex.ToString();
                mModel.LineNumber = comboBox3.SelectedIndex.ToString();
                mModel.ProcessId = comboBox4.SelectedIndex.ToString();
                form6.Close();

            }
        }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (flag1 == false || flag2 == false)
     {
         MessageBox.Show("上方驗證未通過,請重新輸入");
     }
     else
     {
         MessageBoxButtons messbutton = MessageBoxButtons.OKCancel;
         DialogResult      dr         = MessageBox.Show("確定修改密碼嗎?", "否", messbutton);
         if (dr == DialogResult.OK)
         {
             mModel.Password = textBox1.Text;
             form6.Close();
         }
     }
 }
Esempio n. 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     mModel.IsLockKeyboard = false;
     form6.Close();
 }
Esempio n. 4
0
 private void button2_Click(object sender, EventArgs e)
 {
     f6.Close();
     Close();
 }