Exemplo n.º 1
0
 private void tileItem3_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     prepa = new VPreparacion();
     this.Hide();
     prepa.ShowDialog();
     this.Show();
 }
Exemplo n.º 2
0
        private void btnVer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            VPreparacion vPreparacion = new VPreparacion();

            this.Hide();
            vPreparacion.ShowDialog();
            this.Show();
        }
Exemplo n.º 3
0
        public VPedidos()
        {
            InitializeComponent();
            txtFecha.DateTime = DateTime.Today;
            txtHora.Time      = DateTime.Now;
            f      = new funciones();
            prepa  = new VPreparacion();
            ticket = new CrearTicket();

            siguientePedido();

            //Llenar lookup
            cmbUnidad.Properties.DataSource          = Properties.Resources.unidad.Split('\n');
            cmbTipoPastel.Properties.DataSource      = Properties.Resources.tipo.Split('\n');
            tabbedControlGroup1.SelectedTabPageIndex = 0; //Mostrar modo tabla primero
            rdEntrega.SelectedIndex = 0;

            //Asignar estilo de ventana
            UserLookAndFeel.Default.SetSkinStyle(SkinStyle.Caramel);

            //Deshabilitar campos de direccion
            txtNombreCliente.Enabled = false;
            txtDireccion.Enabled     = false;
            txtEntre.Enabled         = false;
            txtColonia.Enabled       = false;
            txtCiudad.Enabled        = false;

            //Borrar al final

            /*cmbTipoPastel.EditValue = "casero";
             * cmbSabor.EditValue = "1";
             * cmbUnidad.EditValue = Properties.Resources.unidad.Split('\n')[0];
             * txtResta.Text = "0";
             * txtHora.Time = DateTime.Now;
             * txtRecPedido.Text = "Carlos Tapia";
             * btnNuevo_ItemClick(null, null);*/
        }