Beispiel #1
0
 private void PopulateChromeAppList()
 {
     if (!Directory.Exists(txtChromeAppPath.Text))
     {
         return;
     }
     _chromeApps =
         ChromeAppLibrary.GetChromeAppItems(txtChromeAppPath.Text)
         .Select(c => new ChromeAppListViewItem(c))
         .ToList();
 }
        public static void RefreshList(bool force = true)
        {
            try
            {
                if (!ChromeAppLibrary.ChromeAppLibraryPathExists() || !ChromeAppLibrary.ChromeInstallationPathExists())
                {
                    return;
                }

                if (force || !_chromeApps.Any())
                {
                    _chromeApps = ChromeAppLibrary.GetChromeAppItems();
                }
            }
            catch
            {
                //ignore
            }
        }