Esempio n. 1
0
        private void RefreshSettings()
        {
            string filename = "python.exe";

            if (GFile.ExistsOnPath(filename))
            {
                lblPythonIsInstalled.Text      = "Python is installed";
                lblPythonIsInstalled.ForeColor = Color.Black;
                lblPythonInstallationPath.Text = GFile.GetFullPath(filename);
            }
            else
            {
                lblPythonIsInstalled.Text      = "Python is NOT installed";
                lblPythonIsInstalled.ForeColor = Color.Red;
                lblPythonInstallationPath.Text = "";
            }
        }
        private void RefreshSettings()
        {
            PopulateGeneralSettings();
            PopulateEnvironmentVariables();
            CheckSelectedTab();

            string filename = "python.exe";

            if (GFile.ExistsOnPath(filename))
            {
                lblPythonIsInstalled.Text      = "Python is installed";
                lblPythonIsInstalled.ForeColor = Color.Black;
                lblPythonInstallationPath.Text = GFile.GetFullPath(filename);
            }
            else
            {
                lblPythonIsInstalled.Text      = "Python is NOT installed";
                lblPythonIsInstalled.ForeColor = Color.Red;
                lblPythonInstallationPath.Text = "";
            }
        }