Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZjzMisaka committed Jun 21, 2024
1 parent 34a107d commit 90959ac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Powork/ViewModel/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,7 @@ private void WindowLoaded(RoutedEventArgs eventArgs)
Application.Current.Dispatcher.Invoke(() =>
{
NoticeList.Add(noticeViewModel);
if (NoticeList.Count > 0)
{
OpenNoticeButtonVisibility = Visibility.Visible;
}
OpenNoticeButtonVisibility = Visibility.Visible;
});
}
else
Expand Down Expand Up @@ -689,6 +686,8 @@ private void NoticeItemClick(NoticeViewModel noticeViewModel)
}
});
}
s_navigationService.Navigate(typeof(TeamPage), new TeamPageViewModel());

s_navigationService.Navigate(typeof(MessagePage), new MessagePageViewModel(ServiceLocator.GetService<INavigationService>(), noticeViewModel.UserMessage.SenderIP, noticeViewModel.UserMessage.SenderName));
}
else if (noticeViewModel.TeamMessage != null)
Expand All @@ -705,6 +704,8 @@ private void NoticeItemClick(NoticeViewModel noticeViewModel)
}
});
}
s_navigationService.Navigate(typeof(MessagePage), new MessagePageViewModel(ServiceLocator.GetService<INavigationService>()));

s_navigationService.Navigate(typeof(TeamPage), new TeamPageViewModel(noticeViewModel.TeamMessage.TeamID));
}

Expand Down

0 comments on commit 90959ac

Please sign in to comment.