Пример #1
0
 /// <summary>
 ///     打印开停机率柱状图
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     try
     {
         if (chartControl1 != null)
         {
             ChartPrint.chartPrint(chartControl1, (float)(Width * 0.85));
         }
     }
     catch (Exception ex)
     {
         LogHelper.Error("Kgl_StateChg_simpleButton3_Click" + ex.Message + ex.StackTrace);
     }
 }
Пример #2
0
 /// <summary>
 ///     打印曲线
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void simpleButton4_Click(object sender, EventArgs e)
 {
     try
     {
         if (chart != null)
         {
             ChartPrint.chartPrint(chart, (float)(Width * 0.8));
         }
     }
     catch (Exception ex)
     {
         LogHelper.Error("Mnl_DayZdzLine_simpleButton4_Click" + ex.Message + ex.StackTrace);
     }
 }