public override void OnEditItem()
        {
            var childVM = new AddCustomerWarrantyInformedViewModel(this.Messenger, this.UserLogin, this.Entity.InternalList.FirstOrDefault(x => x.IsSelected))
            {
                ParentViewModel = this
            };

            childVM.RefreshCustomerWarrantyInformed += this.GetRefreshCustomerWarrantyInformedCollection;
            var messageDailog = new VMMessageDailog()
            {
                ChildViewModel = childVM
            };

            MessengerInstance.Send(messageDailog);
        }
 public override void OnAddItem()
 {
     try
     {
         var childVM = new AddCustomerWarrantyInformedViewModel(this.Messenger, this.UserLogin, this.SelectedCustomer)
         {
             ParentViewModel = this
         };
         childVM.RefreshCustomerWarrantyInformed += this.GetRefreshCustomerWarrantyInformedCollection;
         var messageDailog = new VMMessageDailog()
         {
             ChildViewModel = childVM
         };
         MessengerInstance.Send(messageDailog);
     }
     catch (Exception exception)
     {
         NLogLogger.LogError(exception, TitleResources.Error, ExceptionResources.ExceptionOccured,
                             ExceptionResources.ExceptionOccuredLogDetail);
     }
 }