Beispiel #1
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            ServerCollection serverCollection = App.ServerCollection;

            serverCollection.Load();

            MainListBox.ItemsSource = serverCollection;
            serverCollection.GetStatus();

            if (serverCollection.Count == 0)
            {
                AddText.Visibility = System.Windows.Visibility.Visible;
            }
            else
            {
                AddText.Visibility = System.Windows.Visibility.Collapsed;
            }
        }