public MainWindow() { InitializeComponent(); CommandModel.SetDateContext("2018"); MarineList.PrepareList(); DocumentList.PrepareList(); MarineDocumentList.PrepareList(); TestTree.ItemsSource = MarineDocumentList.MarineDocuments; DateTest.Text = DateTime.Now.ToString(); }
/// <summary> /// Loads the Background image and Stores the Left Menu Navigation Items /// </summary> public MainWindow() { CommandModel.SetDateContext(DateTime.Now.Year.ToString()); UserSettings.SetUp(); CheckUser(); UserThemeSettings(); InitializeComponent(); string UserName = CommandModel.GetUserContext(); DiaryList.PrepareList(); CertifiedPackageList.PreparePackages(); CheckVersion(); //Navigates to the Welcome Page ContentFrame.Navigate(new Uri("Pages/WelcomePage.xaml", UriKind.Relative)); HeaderBlock.Text = "Welcome " + UserName; }