public MainWindow() { InitializeComponent(); try { ConfigLog4net(); log.Debug("***TVM Application Started***"); log.Debug("TVM App Version: " + Constants.appVersion); TVMUtility.killExplorer(); MultiLanguage.Init("EN"); InitialTimer(); Stations.FillStationList(); Stations.FillCurrentStation(); //Parameters.TVMDynamic.FillOrUpdateParameters(); DateTime startDate = DateTime.Parse(Parameters.TVMDynamic.GetParameter("sys_WorkHoursStart")); DateTime endDate = DateTime.Parse(Parameters.TVMDynamic.GetParameter("sys_WorkHoursEnd")); lStation.Content = Stations.currentStation.name.ToUpper(); if (ConfigurationManager.AppSettings["VoiceEnable"].ToString() == "True") { Constants.IsVoiceEnabled = true; } else { Constants.IsVoiceEnabled = false; } //frameHomeMain.Navigate(new Pages.MainPage()); frameHomeMain.Navigate(new Pages.OutOfSevicePage()); } catch (Exception ex) { log.Error(ex.ToString()); } }
private void SetEndStation(int selectedStationId) { if (selectedStationId != Stations.currentStation.id) { string tmp = MultiLanguage.GetCurrentLanguage(); MultiLanguage.ChangeLanguage("EN"); Stations.FillStationList(); Ticket.endStation = Stations.GetStation(selectedStationId); Ticket.startStation = Stations.currentStation; MultiLanguage.ChangeLanguage(tmp); Stations.FillStationList(); //PageControl.ShowPage(Pages.journeyPage); } }