Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private static void CloseAdministrationJournal()
 {
     AdministrationClass.CloseModuleEntry();
     AdministrationClass.CloseProgramEntry();
 }