Example #1
0
 public void BinViewModelsDispose()
 {
     foreach (BinViewModel bvm in BinViewModels)
     {
         bvm.DisposeModel();
     }
     BinViewModels.Clear();
 }
Example #2
0
 public void Clear()
 {
     foreach (BinViewModel bvm in BinViewModels)
     {
         DeleteBin(bvm);
     }
     BinViewModels.Clear();
 }
        public void CreateBins(int depth, int levels, int sections)
        {
            foreach (BinViewModel bvm in BinViewModels)
            {
                bvm.OnTap -= Bvm_OnTap;
            }
            BinViewModels.Clear();

            for (int k = 1; k <= depth; k++)
            {
                for (int i = 1; i <= levels; i++)
                {
                    for (int j = 1; j <= sections; j++)
                    {
                        CreateBin(i, j, k);
                    }
                }
            }
        }