public DataCollection(MainWindow mwin) { window = mwin; //load conf file loadConfFile(DEFAULT_CONF_FILE); mwin.SetParams(param); try { dataStat = new DataStatistics(param); } catch (MyException ex) { mwin.ProcessException(ex); } dataStat.Log("Finished init data statistics..."); api = new PtopwAPIImpl(dataStat); dataStat.Log("Finished init API server..."); DisplayResult = PublicFuns.str2Int32((String)param["DisplayResult"], 1); initPerformanceCounter(); dataStat.Log("Finished init performance counter..."); }
public PtopwAPIImpl(DataStatistics ds) { stat = ds; initServerThread(); }