private void ChangeUserButton_Click(object sender, RoutedEventArgs e) { if (MainFrame.HasContent) { if (!(MainFrame.Content is NewsFeed)) { _newsFeed = new NewsFeed(); MainFrame.Navigate(_newsFeed); } } MenuListBox.SelectedItems.Clear(); AdministrationClass.CloseModuleEntry(); AdministrationClass.CloseProgramEntry(); UserGrid.Visibility = Visibility.Collapsed; MinimazeMenu(); _newsFeed.ShowNews(); WorkerLoginGrid.Visibility = Visibility.Visible; NotificationManager.StopUpdate(); }
private static void CloseAdministrationJournal() { AdministrationClass.CloseModuleEntry(); AdministrationClass.CloseProgramEntry(); }