public frmMesas() { InitializeComponent(); MesasManager listmesas = new MesasManager(); dgvMesas.DataSource = listmesas.TraerMesas(); }
public frmConsultarPedidos() { try { InitializeComponent(); MesasManager listmesas = new MesasManager(); cmbMesas.DataSource = listmesas.TraerMesas(); cmbMesas.DisplayMember = "Id"; cmbMesas.ValueMember = "Id"; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
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); }
protected void Page_Load(object sender, EventArgs e) { var cookie = Request.Cookies["session"]; if (cookie == null) { Response.Redirect("Login.aspx", false); } BindingList <Mesas> pedido = lista.TraerMesas(); pedido = lista.TraerMesas(); ingredientes.DataSource = pedido; ingredientes.DataBind(); }
public void PerformRefresh() { MesasManager listmesas = new MesasManager(); dgvMesas.DataSource = listmesas.TraerMesas(); }