private Move Get(int id, string op, string sort) { try { DataRow[] rows = base.DataTable.Select(Id + op + UStr.Quote(id), Id + " " + sort); if (rows.Length > 0) { Move m = new Move(rows[0]); m.Game = this.Game; return(m); } } catch { } return(null); }
public Move GetBySNo(int sNo) { try { DataRow[] rows = base.DataTable.Select("sno=" + UStr.Quote(sNo)); if (rows.Length > 0) { Move m = new Move(rows[0]); m.Game = this.Game; return(m); } } catch { } return(null); }
private void InitWaterMarkText() { if (!ShowWaterMarkText) { return; } Page.ClientScript.RegisterClientScriptInclude(this.GetType().ToString(), UWeb.ResUrl(this, "Script.js")); Text = WaterMarkText; CssClass = CssClassWaterMarkTextBlur; Attributes.Add("onfocus", "RsTextBox_onfocus(this, " + UStr.Quote(CssClassWaterMarkTextFocus) + ", " + UStr.Quote(WaterMarkText) + ");"); Attributes.Add("onblur", "RsTextBox_onblur(this, " + UStr.Quote(CssClassWaterMarkTextBlur) + ", " + UStr.Quote(WaterMarkText) + ");"); Attributes.Add("onkeypress", "return RsTextBox_onkeypress(event, " + UStr.Quote(ClickOnEnterButtonClientID) + ")"); }
public static DataRow GetSettingRow(DataTable table, string key) { DataRow row = null; DataRow[] rows = table.Select(Kv.KeyName + "=" + UStr.Quote(key)); if (rows.Length > 0) { row = rows[0]; } else { row = table.NewRow(); row[Kv.KeyName] = key; table.Rows.Add(row); table.AcceptChanges(); } return(row); }