예제 #1
0
 private void recibos_btn_Click(object sender, EventArgs e)
 {
     using (entradasWorgking eW = new entradasWorgking(socio, id_socio, id_usuario, nombreSocio))
     {
         eW.ShowDialog();
     }
 }
예제 #2
0
        void startMenu1_OnButtonClick(ButtonClickType type)
        {
            
            switch (type)
            {
                case ButtonClickType.Finalizar:

                    
                    break;
                case ButtonClickType.Clear:
                    m_tagTable.Clear();
                    startMenu1.UpdateTimeElapsed(000);
                    startMenu1.UpdateTagCount(000);
                    cajas_lbl.Text = "000";
                    tarima_lbl.Text = "000";
                    break;
                case ButtonClickType.Exit:
                    this.Close();
                    using (entradasWorgking en = new entradasWorgking(socio, id_socio, id_usuario, nombreSocio))
                    {
                        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;
            }
        }