private void TrackBar_tossing_Scroll(object sender, EventArgs e) { string XDate = ""; int SelectData = 0; SelectData = TrackBar_tossing.Value; for (var i = 0; i <= SelectData - 1; i++) { XDate = System.Convert.ToString(DateAndTime.DateAdd("d", System.Convert.ToDouble(-i), DateTime.Now.Date).ToString("yyyyMMdd")); PVar.StorXData[(int)i] = System.Convert.ToString(DateAndTime.DateAdd("d", System.Convert.ToDouble(-i), DateTime.Now.Date).ToString("MM/dd")); PVar.StorTossing[(int)i] = double.Parse(FileRw.IniGetStringValue(PVar.UIChartYieldOverViewName, XDate, "Tossing", "0")); //当天抛料率 } FileRw.Chart_Curve(Chart_Tossing, "Tossing(Unit:%)", "", "", "Tossing", PVar.StorXData, PVar.StorTossing, 0, 0, 0, false); }
private void TrackBar_uph_Scroll(object sender, EventArgs e) { string XDate = ""; string[] YData = new string[31]; string[] Temp = new string[25]; int SelectData = 0; SelectData = TrackBar_uph.Value; for (var i = 0; i <= SelectData - 1; i++) { XDate = System.Convert.ToString(DateAndTime.DateAdd("d", System.Convert.ToDouble(-i), DateTime.Now.Date).ToString("yyyyMMdd")); PVar.StorXData[(int)i] = System.Convert.ToString(DateAndTime.DateAdd("d", System.Convert.ToDouble(-i), DateTime.Now.Date).ToString("MM/dd")); PVar.StorUPH[(int)i] = double.Parse(FileRw.IniGetStringValue(PVar.UIChartYieldOverViewName, XDate, "OneTodayUPH", "0")); } FileRw.Chart_Curve(Chart_UPH, "UPH(Unit:PCS)", "", "", "UPH", PVar.StorXData, PVar.StorUPH, 0, 0, 0, false); }