public ServiceGymsList() { InitializeComponent(); _serviceGymRepository = new ServiceGymServiceViewModel(); _serviceGymTypeRepository = new ServiceGymTypeServiceViewModel(); this.Loaded += (o, e) => this.GetDataGrid(); }
public ServiceGymTypesDelete(int serviceGymTypeId) { _serviceGymTypeRepository = new ServiceGymTypeServiceViewModel(); InitializeComponent(); _serviceGymTypeId = serviceGymTypeId; GetServiceGymType(_serviceGymTypeId); EventsSource(); }