Пример #1
0
        private int GetProfileCount()
        {
            var netSDKFile      = new NetSDKCredentialsFile();
            var lstProfiles     = netSDKFile.ListProfileNames();
            int intProfileCount = lstProfiles.Count;

            return(intProfileCount);
        }
Пример #2
0
        private void GetProfilesToCleanUp()
        {
            cboAWSProfilesToCleanUp.Items.Clear();
            var netSDKFile  = new NetSDKCredentialsFile();
            var lstProfiles = netSDKFile.ListProfileNames();

            foreach (var Profile in lstProfiles)
            {
                cboAWSProfilesToCleanUp.Items.Add(Profile);
            }
            if (cboAWSProfilesToCleanUp.Items.Count == 0)
            {
                cboAWSProfilesToCleanUp.Enabled = false;
            }
            else
            {
                cboAWSProfilesToCleanUp.Enabled = true;
            }
        }
Пример #3
0
        private void GetSavedProfiles()
        {
            cboAWSExistingProfiles.Items.Clear();
            var netSDKFile  = new NetSDKCredentialsFile();
            var lstProfiles = netSDKFile.ListProfileNames();

            foreach (var Profile in lstProfiles)
            {
                cboAWSExistingProfiles.Items.Add(Profile);
            }
            if (cboAWSExistingProfiles.Items.Count == 0)
            {
                cboAWSExistingProfiles.Enabled = false;
            }
            else
            {
                cboAWSExistingProfiles.Enabled = true;
            }
            if (cboAWSExistingProfiles.Items.Count == 1)
            {
                cboAWSExistingProfiles.Text = cboAWSExistingProfiles.Items[0].ToString();
            }
        }