private void AddItemButtonOnClick(object sender, RoutedEventArgs e)
        {
            var newCarrierService = new CarrierService();
            var newUc             = new UcCarrierService(newCarrierService);

            WindowService.OpenUserControlDialog(newUc);
            var carrierService = ApplicationDataStore.GetData <CarrierService>("CarrierService");

            if (carrierService != null)
            {
                _carrierServices.Add(carrierService);
            }
            CarrierServiceGridControl.RefreshData();
        }
        private void EditItemButtonOnClick(object sender, RoutedEventArgs e)
        {
            var activeCarrierService = CarrierServiceGridControl.SelectedItem as CarrierService;
            var editUc = new UcCarrierService(activeCarrierService);

            WindowService.OpenUserControlDialog(editUc);
            var carrierService = ApplicationDataStore.GetData <CarrierService>("CarrierService");

            if (carrierService != null)
            {
                var oldOne = _carrierServices.First(item => item.Id == carrierService.Id);
                _carrierServices.Remove(oldOne);
                _carrierServices.Add(carrierService);
            }
            CarrierServiceGridControl.RefreshData();
        }