Beispiel #1
0
 public static SignalMonitor XmlSorteMointerDeserialize(string sFilePath)
 {
     try
     {
         SignalMonitor _signalMonitor = new SignalMonitor();
         Stream        sFileSteam     = new FileStream(sFilePath, FileMode.Open, FileAccess.ReadWrite);
         XmlSerializer xmlserial      = new XmlSerializer(typeof(SignalMonitor));
         sFileSteam.Position = 0;
         _signalMonitor      = (SignalMonitor)xmlserial.Deserialize(sFileSteam);
         sFileSteam.Flush();
         sFileSteam.Close();
         return(_signalMonitor);
     }
     catch (Exception ex)
     {
         MessageBox.Show("XmlDeserialiaztion error: " + ex.Message);
         return(default(SignalMonitor));
     }
 }
Beispiel #2
0
 public static bool XmlSorteMointerSerialiaztion(string sFilePath, SignalMonitor signalMonitor)
 {
     return(default(bool));
 }