コード例 #1
0
ファイル: UserRegisterForm.cs プロジェクト: fisoi/SteamLite
        public UserRegisterForm(SignInForm signInForm)
        {
            InitializeComponent();

            this.signInForm = signInForm;

            List <Country> countryes = SQLManager.GetCountryes();

            foreach (Country country in countryes)
            {
                comboBox1.Items.Add(country.name);
            }
            comboBox1.SelectedIndex = 0;
        }
コード例 #2
0
        private void UpdateProfile()
        {
            currentUser = SQLManager.GetUser(loggedUser);

            label14.Text = currentUser.profileName;
            label16.Text = SQLManager.GetCountryFromID(currentUser.CID);

            textBox10.Text = currentUser.profileName;

            List <Country> countryes = SQLManager.GetCountryes();

            foreach (Country country in countryes)
            {
                comboBox1.Items.Add(country.name);
            }
            comboBox1.SelectedItem = SQLManager.GetCountryFromID(currentUser.CID);

            UpdateFriends(currentUser.UID);
        }