Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 public string GetCacheName()
 {
     return(Media.ToString().Replace(":", "") + ".xml");
 }