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(); }
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 + " > "); }
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 + " > "); } }