Ejemplo n.º 1
0
        private void toolStripComboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            // refresh the mapviewer with the values like selected
            if (m_prohibit_viewchange) return;
            /*switch (toolStripComboBox3.SelectedIndex)
            {
                case -1:
                case 0:
                    m_viewtype = Trionic5Tools.ViewType.Hexadecimal;
                    break;
                case 1:
                    m_viewtype = Trionic5Tools.ViewType.Decimal;
                    break;
                case 2:
                    m_viewtype = Trionic5Tools.ViewType.Easy;
                    break;
                case 3:
                    m_viewtype = Trionic5Tools.ViewType.Decimal3Bar;
                    break;
                case 4:
                    m_viewtype = Trionic5Tools.ViewType.Easy3Bar;
                    break;
                case 5:
                    m_viewtype = Trionic5Tools.ViewType.Decimal35Bar;
                    break;
                case 6:
                    m_viewtype = Trionic5Tools.ViewType.Easy35Bar;
                    break;
                case 7:
                    m_viewtype = Trionic5Tools.ViewType.Decimal4Bar;
                    break;
                case 8:
                    m_viewtype = Trionic5Tools.ViewType.Easy4Bar;
                    break;
                case 9:
                    m_viewtype = Trionic5Tools.ViewType.ASCII;
                    break;
                default:
                    m_viewtype = Trionic5Tools.ViewType.Hexadecimal;
                    break;

            }*/
            m_viewtype = (Trionic5Tools.ViewType)toolStripComboBox3.SelectedIndex;
            ReShowTable();
            CastViewTypeChangedEvent();
        }
Ejemplo n.º 2
0
 private void CastViewTypeChangedEvent()
 {
     if (onViewTypeChanged != null)
     {
         onViewTypeChanged(this, new ViewTypeChangedEventArgs(m_viewtype, m_map_name));
         m_previousviewtype = m_viewtype;
     }
 }
Ejemplo n.º 3
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
//            m_isHexMode = !m_isHexMode;
            if (m_viewtype != Trionic5Tools.ViewType.Hexadecimal) m_viewtype = Trionic5Tools.ViewType.Hexadecimal;
            else m_viewtype = m_previousviewtype;
            ShowTable(m_TableWidth, m_issixteenbit);
        }
Ejemplo n.º 4
0
        private void toolStripComboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            // refresh the mapviewer with the values like selected
            if (m_prohibit_viewchange) return;

            m_viewtype = (Trionic5Tools.ViewType)toolStripComboBox3.SelectedIndex;
            ReShowTable();
            CastViewTypeChangedEvent();
        }