public Preferences()
        {
            InitializeComponent();
            if (Properties.Settings.Default.DefaultSearchFolder == string.Empty)
            {
                prefDefaultPath.Text = userProfile;
            }
            else
            {
                prefDefaultPath.Text = Properties.Settings.Default.DefaultSearchFolder;
            }

            try
            {
                prefDefaultServer.Text = Properties.Settings.Default.NugetRepositories[0];
                apiKey.Text            = Properties.Settings.Default.ApiKey[0];
            }
            catch (Exception)
            {
                prefDefaultServer.Text = string.Empty;
                apiKey.Text            = string.Empty;
            }


            HandleComboBoxData handleComboBoxData = new HandleComboBoxData();

            handleComboBoxData.handleNugetServers(prefDefaultServer);
            handleComboBoxData.handleApiKeys(apiKey);
        }
Exemple #2
0
        public MissingInfoDialog()
        {
            InitializeComponent();
            try
            {
                apiKeyComboBox.Text = Properties.Settings.Default.ApiKey[0];
                serverComboBox.Text = Properties.Settings.Default.NugetRepositories[0];
            }
            catch (Exception)
            {
                apiKeyComboBox.Text = string.Empty;
                serverComboBox.Text = string.Empty;
            }


            HandleComboBoxData handleComboBoxData = new HandleComboBoxData();

            handleComboBoxData.handleNugetServers(serverComboBox);
            handleComboBoxData.handleApiKeys(apiKeyComboBox);
        }