Exemple #1
0
        public frmAbrirDia(frmMesas owner)
        {
            InitializeComponent();

            MesasManager listmesas = new MesasManager();

            cmbMesas.DataSource    = listmesas.TraerMesas();
            cmbMesas.DisplayMember = "Id";
            cmbMesas.ValueMember   = "Salon";

            MeseroManager listmesero = new MeseroManager();

            cmbMeseros.DataSource    = listmesero.TraerMeseros();
            cmbMeseros.DisplayMember = "Nombre";
            cmbMeseros.ValueMember   = "Id";
            _owner            = owner;
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmAbrirDia_FormClosing);
        }
        private void btnMostrarmMesas_Click(object sender, EventArgs e)
        {
            frmMesas Mesas = new frmMesas();

            Mesas.Show();
        }