public static PageAllEntries GetInstance() { if (null == PageAllEntries.pageAllEntries) { PageAllEntries.pageAllEntries = new PageAllEntries(); } return(PageAllEntries.pageAllEntries); }
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()); } }