예제 #1
0
        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);
        }