예제 #1
0
 private void ProfilSettings_Load(object sender, EventArgs e)
 {
     if (sellerService == null)
     {
         var list = customerService.CityList();
         CityList.DataSource      = list;
         CityList.DisplayMember   = "CityName";
         SName.Text               = customer.Name;
         Surname.Text             = customer.Surname;
         Email.Text               = customer.Email;
         Password.Text            = customer.Password;
         CityList.Text            = customer.CityName;
         Photo.Text               = customer.Photo;
         pictureBox.ImageLocation = customer.Photo;
         pictureBox.SizeMode      = PictureBoxSizeMode.StretchImage;
     }
     else
     {
         var list = sellerService.CityList();
         CityList.DataSource      = list;
         CityList.DisplayMember   = "CityName";
         SName.Text               = seller.Name;
         Surname.Text             = seller.Surname;
         Email.Text               = seller.Email;
         Password.Text            = seller.Password;
         CityList.Text            = seller.CityName;
         Photo.Text               = seller.Photo;
         pictureBox.ImageLocation = seller.Photo;
         pictureBox.SizeMode      = PictureBoxSizeMode.StretchImage;
     }
 }
예제 #2
0
 private void SellerRegister_Load(object sender, EventArgs e)
 {
     if (sellerService == null)
     {
         var list = customerService.CityList();
         CityList.DataSource    = list;
         CityList.DisplayMember = "CityName";
         progressBar.Value      = 0;
     }
     else
     {
         var list = sellerService.CityList();
         CityList.DataSource    = list;
         CityList.DisplayMember = "CityName";
         progressBar.Value      = 0;
     }
 }