private void button6_Click_1(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("确定执行:后门关闭。", "提示", MessageBoxButtons.OKCancel); if (dr == DialogResult.OK) { SerialManual.CloseStoveLid(8);//关闭后门 } }
private void button3_Click(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("确定执行:前门打开。", "提示", MessageBoxButtons.OKCancel); if (dr == DialogResult.OK) { SerialManual.CloseStoveLid(7);//打开前门 } }
private void buttonClose7_Click(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("确定执行:除渣炉炉盖关闭。", "提示", MessageBoxButtons.OKCancel); if (dr == DialogResult.OK) { SerialManual.CloseStoveLid(6);//关闭除渣炉炉盖 } }
private void buttonClose6_Click(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("确定执行:关闭油炉炉盖。", "提示", MessageBoxButtons.OKCancel); if (dr == DialogResult.OK) { SerialManual.CloseStoveLid(5); } }
private void button7_Click(object sender, EventArgs e) { SerialManual.CloseStoveLid(9); SerialManual.CloseStoveLid(10); SerialManual.CloseStoveLid(11); SerialManual.CloseStoveLid(12); SerialManual.CloseStoveLid(13); SerialManual.CloseStoveLid(14); SerialManual.CloseStoveLid(15); }
private void button16_Click(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("确定执行:6#水槽搅拌打关。", "提示", MessageBoxButtons.OKCancel); if (dr == DialogResult.OK) { //6号水槽搅拌关 SerialManual.CloseStoveLid(14); } }