Beispiel #1
0
 public clsActors(string ApplicationName, string DevKey)
 {
     _Settings = new clsSettings();
     _Collector = new clsStatMonger(DevKey, ApplicationName, _Settings.Accounts, _Settings);
     _Analyzer = new clsStatMasher(_Collector.InitialDataSet, _Collector.HistoricalDataPoints);
     _ED = new clsED(_Settings);
 }
 public frmStatAnalyzer(clsActors actors)
 {
     _actors = actors;
     _monger = _actors.Collector;
     InitializeComponent();
 }
        private void btnLoad_Click(object sender, EventArgs e)
        {
            _monger = null;
            string log_data = null;
            clsFileLogger fl = null;
            openDialog.InitialDirectory = Application.StartupPath;
            openDialog.Multiselect = false;
            openDialog.CheckFileExists = true;
            openDialog.DefaultExt = "All files (*.*)|*.*|TubeGuardian Log (*.log)|*.log";
            openDialog.FileName = "CollectorData.log";
            openDialog.Title = "Load a TubeGuardian Data Log";
            if (openDialog.ShowDialog() == DialogResult.OK)
            {
                fl = new clsFileLogger(openDialog.FileName);
                log_data = fl.readFile();
            }
            if (log_data == null || log_data == string.Empty)
                return;

            _monger = new clsStatMonger(log_data);
            refresh_form();
        }