private string ConstructInstrumentFileName(string sipperFileName) { String instDataDir = OSservices.AddSlash(PicesSipperVariables.SipperInterfaceDir()) + "InstrumentData"; if (instDataDir == "") { instDataDir = OSservices.AddSlash(PicesSipperVariables.SipperInterfaceDir()) + "InstrumentData"; } OSservices.CreateDirectory(instDataDir); string instDataRootName = sipperFileName; if (instDataRootName == "") { instDataRootName = "InstrumentData"; } else { instDataRootName = instDataRootName + "_InstrumentData"; } string instDataFileName = OSservices.AddSlash(instDataDir) + instDataRootName + ".txt"; return(instDataFileName); } /* ConstructInstrumentFileName */
} /* PaintErrorRetreivingCammeraLineData */ private void SaveImageInLogDirectory() { if (chartBuff != null) { DateTime d = DateTime.Now; string logFileDir = OSservices.AddSlash(PicesSipperVariables.SipperInterfaceLogDir()) + "CameraLines"; string logFileName = OSservices.AddSlash(logFileDir) + "CameraLine_" + d.ToString("yyyy-MM-dd_HHmmss") + ".jpg"; OSservices.CreateDirectory(logFileDir); chartBuff.Save(logFileName); } } /* SaveImageInLogDirectory */
public SipperDiskManager() { destDir = OSservices.AddSlash(PicesSipperVariables.HomeDir()) + "SipperFiles"; OSservices.CreateDirectory(destDir); InitializeComponent(); UpdateAvailableBytes(); DownLoadDir.Text = destDir; selectedFiles = new SipperFileControlBlockList(); UpdateAvailableBytes(); oldHeight = this.Height; oldWidth = this.Width; }
public TimePlot(SipperConfigRec _sipperConfigRec, InstrumentDataList _history ) { OSservices.CreateDirectory(PicesSipperVariables.ConfigurationDirectory()); timePlotConfigFileName = OSservices.AddSlash(PicesSipperVariables.ConfigurationDirectory()) + "TimePlotConfig.txt"; sipperConfigRec = _sipperConfigRec; history = _history; InitializeComponent(); InitializeVariables(); LoadConfiguration(); SetToLiveMode(); updateChartTimer.Enabled = true; }
public SipperConfigRec() { OSservices.CreateDirectory(PicesSipperVariables.ConfigurationDirectory()); sipperConfigurationFileName = PicesSipperVariables.ConfigrationFileName(); Load(); }