Example #1
0
        public void OnNavigatedTo(object parameter)
        {
            var services = parameter as ObservableCollection <ServiceToProvide>;

            if (services != null)
            {
                ServicesToProvide.Clear();
                foreach (var service in services)
                {
                    ServicesToProvide.Add(service);
                }
            }
        }
Example #2
0
        private void ExecuteAddService()
        {
            var service = new ServiceToProvide
            {
                Name         = ServiceName,
                ChargedPrice = ChargedPrice,
                Comments     = Comments
            };

            ServicesToProvide.Add(service);

            ServiceName  = string.Empty;
            ChargedPrice = 0;
            Comments     = string.Empty;
        }