private void Initialize() { recNo = -1; db = Resource.ViewDB; method = new ConditionMethod(); CreateBufferedSeries(); CreateGraph(); }
private void Initialize() { reportSheet.LoadDocument(Resource.csExcelOriginReport); db = Resource.ViewDB; calorieTags = null; thermoTags = null; sheetTags = null; }
static public void Create() { BusySets = new UlBinSets(1); State = EClientState.Openning; //Ini = new UlIniFile(csConfigIniFName); Ip = GetLocalIP(); UserNo = -1; Authority = EUserAuthority.Viewer; Tag = new NameTag(Ini); //TLog = new UlLogger(); //TLog.Path = Ini.GetString("Log", "TotalPath"); //TLog.FName = Ini.GetString("Log", "TotalFileName"); //TLog.AddHead("NOTE"); //TLog.AddHead("ERROR"); //TLog.AddHead("EXCEPTION"); Client = new CalorimeterClient(Ini); Settings = new TestSettings(Ini); Settings.Load(); TestDB = new List <CalorimeterTestDatabase>(); TestDB.Add(new CalorimeterTestDatabase()); TestDB.Add(new CalorimeterTestDatabase()); TestDB.Add(new CalorimeterTestDatabase()); TestDB.Add(new CalorimeterTestDatabase()); for (int i = 0; i < 4; i++) { TestDB[i].Database = Ini.GetString("Database", "FileName"); TestDB[i].Open(); } ViewDB = new CalorimeterViewDatabase(); ViewDB.Database = Ini.GetString("Database", "FileName"); ViewDB.Open(); ConfigDB = new CalorimeterConfigDatabase(); ConfigDB.Database = Ini.GetString("Database", "FileName"); ConfigDB.Open(); }