public void populatePunches(string result) { Dictionary <string, List <string> > dictionary = FormatFunctions.createValuePairs(FormatFunctions.SplitToPairs(result)); if (dictionary.Count > 0) { GridFiller.PurgeGrid(logGrid); string[] list = new string[3]; for (int i = 0; i < dictionary["IDKey"].Count; i++) { list[0] = FormatFunctions.PrettyDate(dictionary["Note"][i]); list[2] = FormatFunctions.PrettyDate(dictionary["State"][i]); list[1] = FormatFunctions.PrettyDate(dictionary["TimeStamp"][i]); if (list[2] != "less") { GridFiller.rapidFillColorized(list, logGrid, bool.Parse(list[2])); } else { list[2] = "Location Log"; GridFiller.rapidFill(list, logGrid); } } } }
public void onClickedSearch(object sender, EventArgs e) { GridFiller.PurgeGrid(TSection); string text = "%" + SearchEntry.Text + "%"; string statement = string.Concat(new object[] { "SELECT DISTINCT tasks.IDKey,tasks.Name FROM tasks INNER JOIN taskfields ON tasks.IDKey=taskfields.TaskID WHERE tasks.AgentID='", ClientData.AgentIDK, "' AND ( tasks.Name LIKE '", text, "' OR taskfields.Value LIKE '", text, "');" }); TaskCallback call = new TaskCallback(populateList); DatabaseFunctions.SendToPhp(false, statement, call); }
public void PurgeCells() { GridFiller.PurgeGrid(TSection); }