예제 #1
0
        public static PageAllEntries GetInstance()
        {
            if (null == PageAllEntries.pageAllEntries)
            {
                PageAllEntries.pageAllEntries = new PageAllEntries();
            }

            return(PageAllEntries.pageAllEntries);
        }
예제 #2
0
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (this.lbxMenu.SelectedItem.Equals(MainWindow.menuItemAllEntries))
     {
         this.frameContent.Navigate(PageAllEntries.GetInstance());
     }
     else if (this.lbxMenu.SelectedItem.Equals(MainWindow.menuItemNewEntry))
     {
         this.frameContent.Navigate(PageNewEntry.GetInstance());
     }
     else if (this.lbxMenu.SelectedItem.Equals(MainWindow.menuItemPreferences))
     {
         this.frameContent.Navigate(PageReference.GetInstance());
     }
 }