public override void OnEditItem() { var childVM = new AddCallLogViewModel(this.Messenger, this.UserLogin, this.Entity.InternalList.FirstOrDefault(x => x.IsSelected)) { ParentViewModel = this }; childVM.RefreshCallRegistry += this.GetCallRegisterCollectionByDate; var messageDailog = new VMMessageDailog() { ChildViewModel = childVM }; MessengerInstance.Send(messageDailog); }
public override void OnAddItem() { try { var childVM = new AddCallLogViewModel(this.Messenger, this.UserLogin) { ParentViewModel = this }; childVM.RefreshCallRegistry += this.GetCallRegisterCollectionByDate; var messageDailog = new VMMessageDailog() { ChildViewModel = childVM }; MessengerInstance.Send(messageDailog); } catch (Exception exception) { NLogLogger.LogError(exception, TitleResources.Error, ExceptionResources.ExceptionOccured, ExceptionResources.ExceptionOccuredLogDetail); } }