Beispiel #1
0
        public TerminalForm(OBDInterface obd)
        {
            m_obdInterface = obd;
            InitializeComponent();

            m_strID = m_obdInterface.getDeviceIDString();
            Update();
            richText.SelectionFont  = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular);
            richText.SelectionColor = Color.Black;
            addPrompt();
        }
Beispiel #2
0
 public TerminalForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
     m_strID = m_obdInterface.getDeviceIDString();
     Update();
     richText.SelectionFont = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular);
     richText.SelectionColor = Color.Black;
     if (string.Compare(m_strID, "") == 0)
         richText.AppendText("ELM > ");
     else
         richText.AppendText(m_strID + " > ");
 }
Beispiel #3
0
 public TerminalForm(OBDInterface obd2)
 {
     m_obdInterface = obd2;
     InitializeComponent();
     m_strID = m_obdInterface.getDeviceIDString();
     Update();
     richText.SelectionFont  = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular);
     richText.SelectionColor = Color.Black;
     if (string.Compare(m_strID, "") == 0)
     {
         richText.AppendText("ELM > ");
     }
     else
     {
         richText.AppendText(m_strID + " > ");
     }
 }