/// <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; }