private void InitWatch() { foreach (var watch in Watches) { WatchCreation.InitWatch(watch.Watch); } }
private void InitWatch() { creator = new WatchCreator(DB); creator.InitWatch(WatchVM.Watch); //AddParts(); //FillUpShaders(); //FillUpTextures(); //FillUpTextMap(); }
public IActionResult Index(string watchId) { if (watchId.Length == 1) { WatchVM = new WatchViewModel(DB.Watches.Where(watch => watch.Id.Equals(int.Parse(watchId))).First()); WatchCreation.InitWatch(WatchVM.Watch); WatchVM.GenerateSelectedItemIds(); return(View(WatchVM)); } else { var ids = watchId.Split("-"); WatchVM = new WatchViewModel(DB.Watches.Where(watch => watch.Id.Equals(int.Parse(ids[0]))).First()); WatchCreation.InitBuiltWatch(WatchVM.Watch, ids); WatchVM.GenerateSelectedItemIds(); return(View(WatchVM)); } }