コード例 #1
0
        private void btnSelecionarMesa_Click(object sender, EventArgs e)
        {
            btnSelecionarMesa.Enabled = false;
            using (var PainelBalcaoMesa = new PainelBalcaoMesa())
            {
                PainelBalcaoMesa.Parametro = textBox1.Text;
                PainelBalcaoMesa.ShowDialog();
                labelBalcao.Text = "MESA " + PainelBalcaoMesa.textBoxMesa.Text;

                btnSelecionarMesa.Enabled = true;
            }
        }
コード例 #2
0
        private void PainelBalcao_FormClosed(object sender, FormClosedEventArgs e)
        {
            PainelBalcaoMesa childForm = new PainelBalcaoMesa();

            childForm.Close();
        }