コード例 #1
0
        private void BtnSeconnecter_Click(object sender, EventArgs e)
        {
            string user    = textEditAdresseemail.Text;
            string pwd     = textEditMotdepasse.Text;
            string emailID = textEditAdresseemail.Text;

            if (pwd != null)
            {
                if (user != null)
                {
                    var kUser = new KoloUser();
                    kUser.EmailAddress = user;
                    kUser.Pwd          = pwd;
                    MessageBox.Show("Reussi!");
                }
            }
        }
コード例 #2
0
ファイル: KoloUserForm.cs プロジェクト: HaroldMT/KoloWin
        private void KoloUserForm_Load(object sender, EventArgs e)
        {
            var koloUser = new KoloUser()
            {
                Person = new Person()
            };

            var koloUser1 = new KoloUser();

            koloUser1.Person = new Person();


            koloUsersBindingSource.DataSource = koloUser;
            koloUsersBindingSource.ResetBindings(false);

            CreatekoloUsersBindingSource.DataSource = koloUser1;
            CreatekoloUsersBindingSource.ResetBindings(false);

            countriesBindingSource.DataSource = new Country();
            var UserCountry = Context.Countries.ToList();

            countriesBindingSource.DataSource = UserCountry;
            countriesBindingSource.ResetBindings(false);

            citiesBindingSource.DataSource = new City();
            var UserCity = Context.Cities.ToList();

            citiesBindingSource.DataSource = UserCity;
            citiesBindingSource.ResetBindings(false);

            refGendersBindingSource.DataSource = new RefGender();
            var UserGender = Context.RefGenders.ToList();

            refGendersBindingSource.DataSource = UserGender;
            refGendersBindingSource.ResetBindings(false);

            refMaritalStatusBindingSource.DataSource = new RefMaritalStatu();
            var UserMaritalStatus = Context.RefMaritalStatus.ToList();

            refMaritalStatusBindingSource.DataSource = UserMaritalStatus;
            refMaritalStatusBindingSource.ResetBindings(false);


            KoloContextHelper.Context = new KoloGateway.KoloEntities(KoloUri);
        }