public FormAddRestaurant(FormRestaurants formRestaurant) { InitializeComponent(); _restaurantServiceClient = new RestaurantService.RestaurantServiceClient(); bindingCategory.DataSource = _restaurantServiceClient.GetRestaurantCategories(); _fileServiceClient = new FileService.FileServiceClient(); _formRestaurants = formRestaurant; }
private void menuMenu_ItemClick(object sender, ItemClickEventArgs e) { if (_restaurant == null || _restaurant.IsDisposed) { _restaurant = new FormRestaurants(); } ShowForm(_restaurant); }
public AddMenu(FormRestaurants formRestaurants) { InitializeComponent(); _menuServiceClient = new MenuService.MenuServiceClient(); _restaurantServiceClient = new RestaurantService.RestaurantServiceClient(); bindingRestaurant.DataSource = _restaurantServiceClient.GetRestaurants(); _formRestaurants = formRestaurants; }