Esempio n. 1
0
        private void TDNetPreferencePane_Load(object sender, EventArgs e)
        {
            foreach (var testFrameworkHandle in TestFrameworkManager.TestFrameworkHandles)
            {
                TestFrameworkTraits traits = testFrameworkHandle.GetTraits();
                string frameworkId         = testFrameworkHandle.Id;
                TDNetRunnerInstallationMode installationMode = PreferenceManager.GetInstallationModeForFramework(frameworkId);
                int             index = frameworkGridView.Rows.Add(traits.Name, InstallationModeToString(installationMode));
                DataGridViewRow row   = frameworkGridView.Rows[index];
                row.Tag = frameworkId;
            }

            frameworkGridView.Sort(FrameworkNameColumn, ListSortDirection.Ascending);
            frameworksPopulated = true;
        }
Esempio n. 2
0
        private void RefreshSettingsChanges()
        {
            foreach (DataGridViewRow row in frameworkGridView.Rows)
            {
                var installationMode = InstallationModeFromString((string)row.Cells[1].Value);
                var frameworkId      = (string)row.Tag;

                if (installationMode != PreferenceManager.GetInstallationModeForFramework(frameworkId))
                {
                    PendingSettingsChanges = true;
                    return;
                }
            }

            PendingSettingsChanges = false;
        }