public void Add(ColumnGraphSet items) { foreach (CStringer x in items.Data) { Data.Add(x); ItemsCount ++; } SubItemsCount = Data[0].Items.Count(); }
public void FillUser(string date, string weeks) { OSQLite sql = new OSQLite(); string[] names = { "", "Instrument", "Samp/Instr" }; ColumnGraphSet data1 = new ColumnGraphSet(); data1.Add(users); for (int i = 0; i < data1.Data[0].Items.Count; i++) { data1.Add(sql.miGetTestedInstruments(data1.Data[0].Items[i].ToString(), date).ToString()); } data1.Merge(); for (int i = 0; i < data1.Data[0].Items.Count; i++) { if (data1.Data[1].Items[i].ToString() == "0") { data1.Remove(i); i--; } } string[] xValues = data1.GetNames(); double[] yValues = data1.GetInstruments(); SetChart("Produktion - " + weeks + " veckor", xValues, yValues, 100); }