public void tbAnalysisClick(object sender, EventArgs e) { StringList strList = new StringList(); try { for (int i = 0; i < MAX_TRENDS; i++) { TrendObj trendObj = TrendChart1[i]; if (!string.IsNullOrEmpty(trendObj.Tag)) { strList.Add(string.Concat(new string[] { trendObj.Tag, ": ", "MIN: ", AnalitikMIN[i].ToString(), "| ", "MAX: ", AnalitikMAX[i].ToString(), "| ", "AVG: ", AnalitikAVG[i].ToString(), "\n\r" })); } } if (strList.Text != "") { PIBUtils.ShowMessage("Analysis results:\n\r" + strList.Text); } } catch (Exception ex) { strList.Dispose(); } }
public void FiltersApply() { for (int i = 0; i < fTrends.Count; i++) { if (fTrends[i].Visible) { try { fTrends[i].Series.ApplyFilter(); } catch (Exception ex) { PIBUtils.ShowMessage("Error type #8: " + ex.Message); } } } }
public void DrawTrends() { Clear(); for (int i = 0; i < fTrends.Count; i++) { TrendObj trendObj = fTrends[i]; if (fTrends[i].Visible) { try { if (!string.IsNullOrEmpty(trendObj.Tag)) { PrepareArray("", "", "", trendObj); } } catch (Exception ex) { PIBUtils.ShowMessage("Error type #8: " + ex.Message); } } } }