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