public ShopWindow_(ShopsDTO shop, BLL.BLL BLL_)
 {
     InitializeComponent();
     LoadData(shop);
     this.shop = shop;
     this.BLL_ = BLL_;
 }
        private void LoadData(ShopsDTO shop)
        {
            if (shop.Name == null)
            {
                Create_Update.Content = "Create";
            }
            else
            {
                Create_Update.Content = "Update";
            }

            Name.Text             = shop.Name;
            Address.Text          = shop.Address;
            CityId.Text           = shop.CityId.ToString();
            ParkingArea.IsChecked = shop.ParkingArea;
            DirectorId.Text       = shop.DirectorId.ToString();
        }
Exemple #3
0
 public static ShopDG Convert(ShopsDTO shopsDTO)
 {
     return(new ShopDG(shopsDTO.Name, shopsDTO.Address, shopsDTO.ParkingArea, shopsDTO.CityId, shopsDTO.DirectorId));
 }