private void btnTamil_Click(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ta"); Employee_Lgn objEL = new Employee_Lgn(locationType); this.Close(); objEL.Show(); }
private void btnEnglish_Click(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.InstalledUICulture; Employee_Lgn objEL = new Employee_Lgn(locationType); this.Close(); objEL.Show(); }
/// <summary> /// Initializes a new instance of the <see cref="LIC_Policies"/> class. /// </summary> /// <param name="EmpId">The emp id.</param> /// <param name="EmpName">Name of the emp.</param> /// <remarks></remarks> public LIC_Policies(string EmpId, string EmpName, string locallocationType) { InitializeComponent(); localEmpId = EmpId; localEmpName = EmpName; lblExName.Text = EmpName; locationType = locallocationType; // lblDt.Text = DateTime.Now.ToString("dd-MM-yyyy"); lblDt.Text = ConfigurationManager.AppSettings["LastUpdatedDate"]; try { _am.WarningMinutes = Convert.ToDouble(ConfigurationManager.AppSettings["WarningMinutes"]); _am.MaxMinutesIdle = Convert.ToDouble(ConfigurationManager.AppSettings["MaxMinutesIdle"]); _am.Idle += new EventHandler(am_Idle); activityMonitorBindingSource.DataSource = _am; } catch { MessageBox.Show("Entered into wrong data"); } try { //Query for Geting Data form Excel sheet dsLIC = GC.ExcelConnectivity("select * from [Sheet1$] where [Emp No] = " + EmpId + "", "OleDbConnString_LIC_Policies"); if (dsLIC.Tables[0].Rows.Count > 0) { dgvLIC.AutoGenerateColumns = true; bindingSource1.DataSource = dsLIC.Tables[0]; dgvLIC.DataSource = bindingSource1; } else { lblError.Visible = true; lblError.Text = "No Details Available"; } } catch (Exception ex) { GC.ErrorLoging(ex.ToString()); this.Close(); Employee_Lgn ObjEL = new Employee_Lgn(locationType); ObjEL.Show(); lblError.Visible = true; lblError.Text = "No Details Available"; } }