Exemplo n.º 1
0
 private void InitWatch()
 {
     foreach (var watch in Watches)
     {
         WatchCreation.InitWatch(watch.Watch);
     }
 }
Exemplo n.º 2
0
 private void InitWatch()
 {
     creator = new WatchCreator(DB);
     creator.InitWatch(WatchVM.Watch);
     //AddParts();
     //FillUpShaders();
     //FillUpTextures();
     //FillUpTextMap();
 }
Exemplo n.º 3
0
 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));
     }
 }