コード例 #1
0
        public static PageNewEntry GetInstance()
        {
            if (null == PageNewEntry.pageNewEntry)
            {
                PageNewEntry.pageNewEntry = new PageNewEntry();
            }

            return(PageNewEntry.pageNewEntry);
        }
コード例 #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());
     }
 }