/// <summary> /// Load Event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded(object sender, RoutedEventArgs e) { ReportsBusinessObject objVersion = new ReportsBusinessObject(); string sVersion, sName, sCopyRight, sDescription, sCompanyName, sProductName, sProductVersion; objVersion.GetVersion_SiteName(out sVersion, out sName); objVersion.GetSplashDetails(out sCopyRight, out sDescription, out sCompanyName, out sProductName, out sProductVersion); txtVersion.Text = sVersion; CopyRight.Text = "© " + DateTime.Now.Year + " Bally Technologies Inc. All Rights Reserved"; CompanyName.Text = "Company Name : " + sCompanyName; ProductName.Text = "Product Name : " + sProductName; ProductVersion.Text = "Product Version : " + sProductVersion; }
/// <summary> /// Load Event. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Window_Loaded(object sender, RoutedEventArgs e) { ReportsBusinessObject objVersion = new ReportsBusinessObject(); if (String.IsNullOrEmpty(oCommonUtilities.CreateInstance().GetConnectionString())) { MessageBox.ShowBox("MessageID1", BMC_Icon.Error); App.Current.Shutdown(); } string sVersion, sName, sCopyRight, sDescription, sCompanyName, sProductName, sProductVersion; objVersion.GetVersion_SiteName(out sVersion, out sName); objVersion.GetSplashDetails(out sCopyRight, out sDescription, out sCompanyName, out sProductName, out sProductVersion); txtVersion.Text = sVersion; CopyRight.Text = "© " + DateTime.Now.Year + " Bally Technologies Inc. All Rights Reserved"; CompanyName.Text = "Company Name : " + sCompanyName; ProductName.Text = "Product Name : " + sProductName; ProductVersion.Text = "Product Version : " + sProductVersion; //Start a new thread for the Pre - Requisite Checks. if (thread == null) { thread = new System.Threading.Thread( new System.Threading.ThreadStart( delegate() { System.Windows.Threading.DispatcherOperation dispatcherOp = txtStatus.Dispatcher.BeginInvoke( System.Windows.Threading.DispatcherPriority.Normal, new Action( UpdateStatus )); } )); thread.Start(); } }