Exemple #1
0
        public static void Run()
        {
            AxesBuilder.Origin.Frequency = ApplicationSettings.Instance.OriginFrequency;
            AxesBuilder.Origin.LifeTime  = ApplicationSettings.Instance.OriginLifeTime;
            AxesBuilder.Origin.Weight    = ApplicationSettings.Instance.OriginWeight;

            AxesBuilder.Clustres = new List <StoneCluster>();

            DCC.Groups = new StoneGroup[8];
            for (int i = 0; i < 8; i++)
            {
                DCC.Groups[i] = new StoneGroup(i);
            }

            DataAggregator.Initialize();

            DataSet = new StoneDataSet();
            DataSet.LoadFromFile(ApplicationSettings.Instance.LoadFilePath);

            PersistThread.Start();
            RunStone(DataSet);

            ApplicationSettings.Instance.OriginFrequency = AxesBuilder.Origin.Frequency;
            ApplicationSettings.Instance.OriginLifeTime  = AxesBuilder.Origin.LifeTime;
            ApplicationSettings.Instance.OriginWeight    = AxesBuilder.Origin.Weight;

            ApplicationSettings.Instance.Save();
        }
Exemple #2
0
 public static int LoadDataSet(string filePath)
 {
     DataSet = new StoneDataSet();
     return(DataSet.LoadFromFile(filePath));
 }