public static bool LookupParameterSwitch(string cbtt, string pcode, ParameterSwitch p) { string s = cbtt.PadRight(8).ToUpper() + pcode; DataRow[] rows = Pcode.Select("pcode = '" + s + "'"); if (rows.Length == 1) { s = rows[0][p.ToString()].ToString(); if (s.Trim() == "1") { return(true); } } return(false); }
public static bool LookupParameterSwitch(string cbtt, string pcode, ParameterSwitch p) { string s = cbtt.PadRight(8).ToUpper() + pcode; DataRow[] rows = Pcode.Select("pcode = '"+s+"'"); if (rows.Length == 1) { s = rows[0][p.ToString()].ToString(); if (s.Trim() == "1") return true; } return false; }