Exemple #1
0
        private void AddDefaultV2DataCollectionClick(object sender, RoutedEventArgs e)
        {
            V2DataCollection data_collection = new V2DataCollection(0.0, "Default info");

            data_collection.InitRandom(3, 10.0f, 10.0f, -10.0f, 10.0f);
            MainCollection.Add(data_collection);
            MainCollection.IsSave = false;
        }
Exemple #2
0
    public void AddDefaults()
    {
        Random rnd = new Random();
        //int n_new = rnd.Next(3,Int32.MaxValue);
        int n_new = rnd.Next(3, 5);

        for (int i = 0; i < n_new; i++)
        {
            Grid1D           d1       = new Grid1D(3, 4);
            V2DataOnGrid     New_Grid = new V2DataOnGrid("a", 4, d1, d1);
            V2DataCollection New_Coll = new V2DataCollection("a", 5);
            New_Grid.InitRandom(12, 20);
            New_Coll.InitRandom(5, 1, 10, 12, 20);
            Main_Data.Add(New_Grid);
            Main_Data.Add(New_Coll);
        }
    }