Exemple #1
0
 private void PopulateChromeInstallationPath()
 {
     try
     {
         txtChromeExePath.Text = ChromeAppLibrary.GetChromeInstallationPath();
     }
     catch (Exception ex)
     {
         txtChromeExePath.Text = ex.Message;
     }
 }
Exemple #2
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
            }
        }
Exemple #4
0
 private void PopulateChromeInstallationPath()
 {
     txtChromeExePath.Text = ChromeAppLibrary.ChromeInstallationPathExists()
         ? ChromeAppLibrary.ChromeInstallationPath
         : Strings.UnableToFindChromeInstallationPath;
 }
Exemple #5
0
 private void PopulateGoogleAppLibraryPath()
 {
     txtChromeAppPath.Text = ChromeAppLibrary.ChromeAppLibraryPathExists()
         ? ChromeAppLibrary.AppLibraryPath
         : $"{Strings.PathNotFound}: {ChromeAppLibrary.AppLibraryPath}";
 }