private void MoveModuleDownCommand_Executed(object obj)
        {
            int index = -1;

            foreach (ModuleViewModel mvm in Modules)
            {
                ++index;
                if (mvm == SelectedModule)
                {
                    break;
                }
            }
            if (index >= 0 && (index <= (Modules.Count - 2)))
            {
                ModuleViewModel mvm = SelectedModule;
                SelectedModule = null;
                Modules.Remove(mvm);
                Modules.Insert(index + 1, mvm);
                SelectedModule = mvm;
            }
        }
Beispiel #2
0
 public void SetSelectedModule(ModuleViewModel mvm)
 {
     _FasenLijstVM.SelectedModule = mvm;
 }
 public FaseCyclusModuleViewModel(FaseCyclusModel fcm, ModuleViewModel mvm)
 {
     _FaseCyclus = fcm;
     _ModuleVM   = mvm;
 }