Beispiel #1
0
 private void OnDeserialized(StreamingContext sc)
 {
     if (WDataParas == null)
     {
         WDataParas          = new WDataParas();
         WDataParas.OldData  = true;
         WDataParas.Interval = 500;  // for old data file is 500
     }
     Constructor();
 }
Beispiel #2
0
 /// <summary>
 /// clear sample data related informations
 /// </summary>
 public void ClearDataInfo()
 {
     Software         = "";
     Version          = "";
     FloatSampleData  = true;  // using float to store
     CollectDuration  = TimeSpan.Zero;
     WidthFiltered    = -1;
     OverlapFiltered  = -1;
     DistanceFiltered = -1;
     WData            = new List <float[]>();
     WDataParas       = new WDataParas();
     //TestMode = TestMode.NotSet;   // do not clear test mode, keep it
     BaselineOffset = false;
     //PMTGainInVolts = false;       // keep this value for third party data
     ShowFilteredEvents        = false;
     LastSettingChangeIndex    = 0;
     LastSettingChangeTime     = 0;
     LastSettingChangeDuration = TimeSpan.Zero;
     LastSettingChangeVolume   = 0;
     FcsFileName = string.Empty;
 }