Exemplo n.º 1
0
        public static List<Apps> Get()
        {
            if (_apps != null && _apps.Count() > 0)
            {
                //_apps.ForEach(x => x.Program = x.Program.Replace("\"", ""));
                return _apps;
            }

            _apps = Settings.GetJson<Apps>("apps.json");

            if(_apps==null && _apps.Count == 0)
            {
                Apps chrome = new Apps() { Program = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" };
                _apps = new List<Apps>();
                _apps.Add(chrome);
                Save(_apps);
            }
               // _apps.ForEach(x => x.Program = x.Program.Replace("\"", ""));
            return _apps;
        }
Exemplo n.º 2
0
        public static List <Apps> Get()
        {
            if (_apps != null && _apps.Count() > 0)
            {
                //_apps.ForEach(x => x.Program = x.Program.Replace("\"", ""));
                return(_apps);
            }

            _apps = Settings.GetJson <Apps>("apps.json");

            if (_apps == null && _apps.Count == 0)
            {
                Apps chrome = new Apps()
                {
                    Program = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
                };
                _apps = new List <Apps>();
                _apps.Add(chrome);
                Save(_apps);
            }
            // _apps.ForEach(x => x.Program = x.Program.Replace("\"", ""));
            return(_apps);
        }