public void AddDefaults()
        {
            Random rnd = new Random();


            Grid             new_grid;
            V1DataOnGrid     value1;
            V1DataCollection value2;

            new_grid = new Grid(rnd.Next(100), rnd.Next(5), 4);
            value1   = new V1DataOnGrid("ID1", new DateTime(5, 5, 5), new_grid);
            value1.InitRandom(3, 7);
            Add(value1);
            new_grid = new Grid(rnd.Next(100), rnd.Next(5), 7);
            value1   = new V1DataOnGrid("ID2", new DateTime(5, 5, 5), new_grid);
            value1.InitRandom(3, 7);
            Add(value1);
            new_grid = new Grid(rnd.Next(100), rnd.Next(5), 0);
            value1   = new V1DataOnGrid("ID3", new DateTime(5, 5, 5), new_grid);
            value1.InitRandom(3, 7);
            Add(value1);
            value2 = new V1DataCollection("ID4", new DateTime(5, 5, 5));
            value2.InitRandom(5, 1, 4, 3, 4);
            Add(value2);
            value2 = new V1DataCollection("ID5", new DateTime(5, 5, 5));
            value2.InitRandom(0, 1, 4, 3, 4);
            Add(value2);

            NotifyPropertyChanged("max_count");
        }
        public void AddDefaults()
        {
            Grid grid_0 = new Grid {
                t_begin = 0f, t_step = 0f, count = 0
            };
            V1DataOnGrid tmp_0 = new V1DataOnGrid("info", DateTime.Now, grid_0);

            Add(tmp_0);
            V1DataCollection tmp_1 = new V1DataCollection("info", DateTime.Now);

            Add(tmp_1);
            Random rand = new Random();
            int    k    = 2;

            for (int i = 0; i < k; i++)
            {
                string   info = "info";
                DateTime date = DateTime.Now;
                Grid     grid = new Grid {
                    t_begin = 0f, t_step = 5f, count = 2
                };
                float        rand_minValue = (float)(-rand.NextDouble() * 20f);
                float        rand_maxValue = (float)(rand.NextDouble() * 30f);
                V1DataOnGrid tmp           = new V1DataOnGrid(info, date, grid);
                tmp.InitRandom(rand_minValue, rand_maxValue);
                Add(tmp);
                V1DataCollection tmp2           = new V1DataCollection(info, date);
                float            rand_minValue2 = (float)(-rand.NextDouble() * 20f);
                float            rand_maxValue2 = (float)(rand.NextDouble() * 30f);
                float            rand_tmin      = (float)(rand.NextDouble() * 10f);
                float            rand_tmax      = rand_tmin + (float)(rand.NextDouble() * 30f);
                tmp2.InitRandom(2, rand_tmin, rand_tmax, rand_minValue2, rand_maxValue2);
                Add(tmp2);
            }
        }