public void dilCevir( FormControl control) { string dil = Current.Instance.UserInfo.DefaultLanguage.ToString(); string kelime=control.Caption; string query =string.Format("SELECT TOP (1) [TR] ,[EN] ,[DE] FROM [PWL_SISTEM_JARGON](NOLOCK) WHERE TR = '{0}'",kelime); Current.Instance.productivity.rAdo.Query(query, - 1, false, (s1, e1) => { System.Data.DataSet ds = Paperwork.Library.Assembly.DataTableSerializer.DeSerializeDataTable(e1.Result.Result); if (ds.Tables[0].Rows.Count > 0) { if (dil == "EN") { kelime = ds.Tables[0].Rows[0]["EN"].ToString(); } if (dil == "DE") { kelime = ds.Tables[0].Rows[0]["DE"].ToString(); } control.Caption=kelime; ds=null; } }, string.Empty); }
No comment