Esempio n. 1
0
        public mensajeShow(String text, String title, int idEnvio, int socio, int id_carro, enviosWorking enviosW, int id_socio, int id_usuario)
        {
            InitializeComponent();

            this.id_envio = idEnvio;
            this.socio = socio;
            this.eW = enviosW;
            this.id_carro = id_carro;
            this.id_socio = id_socio;
            this.id_usuario = id_usuario;

            this.lbl_text.Text = text;
            this.Text = title;
        }
Esempio n. 2
0
 private void envios_btn_Click(object sender, EventArgs e)
 {
     using (enviosWorking en = new enviosWorking(socio, id_socio, id_usuario))
     {
         en.ShowDialog();
     }
 }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            using (cargando c = new cargando())
            {
                c.Location = new Point((320 - c.Width) / 2, (240 - c.Height) / 2);
                c.Show();
                c.Update();
                String result = eliminarEnvio();
                String[] r = result.Split('*');

                if (r[0].CompareTo("Error") == 0)
                {
                    MessageBox.Show(r[1], "Error al eliminar");
                }
                else
                {
                    MessageBox.Show(r[1], "Operación exitosa");
                    this.Close();
                    using (enviosWorking env = new enviosWorking(socio, id_socio, id_usuario))
                    {
                        env.ShowDialog();
                    }
                }
            }
        }
Esempio n. 4
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.Close();
     using (enviosWorking env = new enviosWorking(socio, id_socio, id_usuario))
     {
         env.ShowDialog();
     }
 }
Esempio n. 5
0
        void startMenu1_OnButtonClick(ButtonClickType type)
        {
            switch (type)
            {
                case ButtonClickType.Finalizar:
                   // MessageBox.Show("Finalizar");
                    String result;
                    using (cargando c = new cargando())
                    {
                        c.Location = new Point((320 - c.Width) / 2, (240 - c.Height) / 2);
                        c.Show();
                        c.Update();
                        result = finalizarPreEnvio();
                    }
                    String[] r = result.Split('*');

                    if (r[0].CompareTo("Error") == 0)
                    {
                        MessageBox.Show(r[1], "Error al enviar");
                    }
                    else
                    {
                        MessageBox.Show(r[1], "Operación exitosa");
                        this.Close();
                        using (enviosWorking env = new enviosWorking(socio, id_socio, id_usuario))
                        {
                            env.ShowDialog();
                        }
                    }
                    
                    
                    break;
                case ButtonClickType.Clear:
                    m_tagTable.Clear();
                    startMenu1.UpdateTimeElapsed(000);
                    startMenu1.UpdateTagCount(000);
                    cajas_lbl.Text = "0";
                    tarima_lbl.Text = "0";
                    break;
                case ButtonClickType.Exit:
                    this.Close();
                    using (enviosWorking en = new enviosWorking(socio, id_socio, id_usuario))
                    {
                        en.ShowDialog();
                    }
                    break;
                case ButtonClickType.Hide:
                case ButtonClickType.Unhide:
                    //Resize list
                    nTable.Height = 270 - startMenu1.Height;
                    break;
                case ButtonClickType.Save:
                    Save();
                    break;
                case ButtonClickType.Start:
                    Start();
                    break;
                case ButtonClickType.Stop:
                    Stop();
                    break;
                case ButtonClickType.Sorting:
                    switch (startMenu1.SortingMethod)
                    {
                        case Sorting.EPC_Ascending:
                            m_tagTable.SortMethod = SortIndex.EPC;
                            m_tagTable.Ascending = true;
                            break;
                        case Sorting.EPC_Decending:
                            m_tagTable.SortMethod = SortIndex.EPC;
                            m_tagTable.Ascending = false;
                            break;
                        /*case Sorting.PC_Ascending:
                            m_tagTable.SortMethod = SortIndex.PC;
                            m_tagTable.Ascending = true;
                            break;
                        case Sorting.PC_Decending:
                            m_tagTable.SortMethod = SortIndex.PC;
                            m_tagTable.Ascending = false;
                            break;*/
                        case Sorting.INDEX_Ascending:
                            m_tagTable.SortMethod = SortIndex.INDEX;
                            m_tagTable.Ascending = true;
                            break;
                        case Sorting.INDEX_Decending:
                            m_tagTable.SortMethod = SortIndex.INDEX;
                            m_tagTable.Ascending = false;
                            break;
                    }
                    m_tagTable.Sort();
                    m_tagTable.Redraw();
                    break;
            }
        }