public void OnNavigatedTo(object parameter) { var services = parameter as ObservableCollection <ServiceToProvide>; if (services != null) { ServicesToProvide.Clear(); foreach (var service in services) { ServicesToProvide.Add(service); } } }
private void ExecuteAddService() { var service = new ServiceToProvide { Name = ServiceName, ChargedPrice = ChargedPrice, Comments = Comments }; ServicesToProvide.Add(service); ServiceName = string.Empty; ChargedPrice = 0; Comments = string.Empty; }