Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public int CompareTo(object obj) // не факт , что надо...
        {
            InstallVM iVM = obj as InstallVM;

            if (iVM != null)
            {
                return(this.NsName.CompareTo(iVM.NsName));
            }
            else
            {
                throw new Exception("Невозможно сравнить 2 объекта");
            }
        }