Ejemplo n.º 1
0
        public override void OnEditItem()
        {
            var childVM = new AddUserLoginViewModel(this.Messenger, this.UserLogin, this.Entity.InternalList.FirstOrDefault(x => x.IsSelected))
            {
                ParentViewModel = this
            };

            childVM.RefreshUserLogin += this.GetRefreshUserLoginCollection;
            var messageDailog = new VMMessageDailog()
            {
                ChildViewModel = childVM
            };

            MessengerInstance.Send(messageDailog);
        }
Ejemplo n.º 2
0
 public override void OnAddItem()
 {
     try
     {
         var childVM = new AddUserLoginViewModel(this.Messenger, this.UserLogin)
         {
             ParentViewModel = this
         };
         childVM.RefreshUserLogin += this.GetRefreshUserLoginCollection;
         var messageDailog = new VMMessageDailog()
         {
             ChildViewModel = childVM
         };
         MessengerInstance.Send(messageDailog);
     }
     catch (Exception exception)
     {
         NLogLogger.LogError(exception, TitleResources.Error, ExceptionResources.ExceptionOccured,
                             ExceptionResources.ExceptionOccuredLogDetail);
     }
 }