private void GetInstall() { List <string> allsoft = core.GetSoftNames(); List <Install> modelList = core.GetInstalled(); foreach (Install inst in modelList) { InstallVM newComp = new InstallVM(inst, allsoft); installs.Add(newComp); } }
public int CompareTo(object obj) // не факт , что надо... { InstallVM iVM = obj as InstallVM; if (iVM != null) { return(this.NsName.CompareTo(iVM.NsName)); } else { throw new Exception("Невозможно сравнить 2 объекта"); } }