private void UpdateStatus(string text) { if (Settings.Default.HdlcAddressScanBaudRates && media is GXSerial serial) { StatusLbl.Text = text + " " + serial.PortName + " with multiple baud rates."; } else if (Settings.Default.HdlcAddressUseOpticalProbe && media is GXSerial) { StatusLbl.Text = text + " " + media.ToString() + " with optical probe."; } else { StatusLbl.Text = text + " " + media.ToString(); } }
public string GetCacheName() { string str = Media.ToString(); int pos = str.IndexOf(' '); if (pos != -1) { str = str.Substring(0, pos); } str = str.Replace(":", ""); return("Media_" + str + ".xml"); }
private void UpdateStatus(string text) { string str; if ((InterfaceType)Settings.Default.PlcInterface == InterfaceType.Plc) { str = "PLC LLC"; } else { str = "PLC HDLC"; } StatusLbl.Text = text + " Using " + str + ". " + media.ToString(); }
public string GetCacheName() { return(Media.ToString().Replace(":", "") + ".xml"); }