Example #1
0
 public void AddDefaults()
 {
     for (int i = 0; i < 2; ++i)
     {
         V2DataOnGrid v2_data_on_grid = new V2DataOnGrid(0.0, "Default info", new double[] { 0.01, 0.01 }, new int[] { 3, 3 });
         v2_data_on_grid.InitRandom(-10.0f, 10.0f);
         ListData.Add(v2_data_on_grid);
         V2DataCollection v2_data_collection = new V2DataCollection(0.0, "Default info");
         v2_data_collection.InitRandom(3, 10.0f, 10.0f, -10.0f, 10.0f);
         ListData.Add(v2_data_collection);
     }
 }
Example #2
0
 public void AddDefaults()
 {
     for (int i = 0; i < 2; ++i)
     {
         V2DataOnGrid v2_data_on_grid = new V2DataOnGrid(0.0, "Default info", new double[] { 0.01, 0.01 }, new int[] { 3, 3 });
         v2_data_on_grid.InitRandom(-10.0f, 10.0f);
         ListData.Add(v2_data_on_grid);
         ListData[ListData.Count - 1].PropertyChanged += PropertyChangedEventHandler;
         V2DataCollection v2_data_collection = new V2DataCollection(0.0, "Default info");
         v2_data_collection.InitRandom(3, 10.0f, 10.0f, -10.0f, 10.0f);
         ListData.Add(v2_data_collection);
         ListData[ListData.Count - 1].PropertyChanged += PropertyChangedEventHandler;
     }
 }
Example #3
0
        static void Main(string[] args)
        {
            var main_collection = new V2MainCollection();

            main_collection.AddDefaults();
            Console.WriteLine(main_collection.ToString());

            main_collection.DataChanged += DataChangedEventHandler;

            V2DataOnGrid data_on_grid = new V2DataOnGrid(0, "New V2 data on grid",
                                                         new double[] { 0.01, 0.01 }, new int[] { 5, 5 });

            main_collection.Add(data_on_grid);
            main_collection[3]             = new V2DataCollection(1.0f, "Desc");
            main_collection[2].Description = "Service info";
            main_collection[2].Freq_field  = 21.0f;
            main_collection.Remove("Service info", 21.0f);
        }