Exemplo n.º 1
0
 internal RefineJobVM(RefiningVM parentVM, StaticDataStore staticData, RefineingJob job, CommandReferences cmdRef)
 {
     _parent     = parentVM;
     _staticData = staticData;
     JobItem     = job;
     Item        = _staticData.CargoGoods.GetMaterial(JobItem.ItemGuid).Name;
     _cmdRef     = cmdRef;
 }
Exemplo n.º 2
0
 internal RefineJobVM(RefiningVM parentVM, StaticDataStore staticData, RefineingJob job, CommandReferences cmdRef)
 {
     _parent     = parentVM;
     _staticData = staticData;
     JobItem     = job;
     Item        = _staticData.ProcessedMaterials[JobItem.ItemGuid].Name;
     _cmdRef     = cmdRef;
 }
 private void SetViewForViewmodel(IDBViewmodel vm, TabPage tabPage)
 {
     if (vm is CargoStorageVM)
     {
         CargoView.CargoStorageView view = new CargoView.CargoStorageView();
         view.DataContext = vm;
         tabPage.Content  = view;
         tabPage.Text     = "Cargo";
     }
     else if (vm is RefiningVM)
     {
         RefinaryView.RefinaryView view = new RefinaryView.RefinaryView();
         view.DataContext = vm;
         tabPage.Content  = view;
         tabPage.Text     = "Refinary";
     }
     else if (vm is TranslationMoveVM)
     {
         MoveOrderViews.TranslateMoveView view = new MoveOrderViews.TranslateMoveView();
         view.DataContext = vm;
         tabPage.Content  = view;
         tabPage.Text     = "Helm";
     }
 }