public PageClothModel(PageClothViewModel ViewModel, PageClothView View) { this.ViewModel = ViewModel; this.View = View; ClothList1 = ClothManager.Instance.GetClothModelsByIndex(1); ClothList2 = ClothManager.Instance.GetClothModelsByIndex(2); ClothList3 = ClothManager.Instance.GetClothModelsByIndex(3); }
public PageClothView() { InitializeComponent(); ViewModel = new PageClothViewModel(this); DataContext = ViewModel; }