/// <summary> /// 构造函数 /// </summary> /// <param name="pic_PicMap">图</param> /// <param name="int_MaxTimes">最大次数</param> public CCLHarmonious(System.Windows.Forms.PictureBox pic_PicMap, int int_MaxTimes) { this.m_cce_Curve = new CCLCurve(pic_PicMap); this.m_cce_Curve.AxisType = AxisType.LeftMiddle; this.m_int_ScaleWidth = this.m_cce_Curve.ScaleWidth; this.m_int_ScaleHeight = this.m_cce_Curve.ScaleHeight; this.m_cce_Curve.Margin = 10; this.m_int_MaxTimes = int_MaxTimes; this.m_bln_UaTimesSelected = new bool[int_MaxTimes]; this.m_flt_UaPhase = new float[int_MaxTimes]; this.m_flt_UaValue = new float[int_MaxTimes]; this.m_bln_UbTimesSelected = new bool[int_MaxTimes]; this.m_flt_UbPhase = new float[int_MaxTimes]; this.m_flt_UbValue = new float[int_MaxTimes]; this.m_bln_UcTimesSelected = new bool[int_MaxTimes]; this.m_flt_UcPhase = new float[int_MaxTimes]; this.m_flt_UcValue = new float[int_MaxTimes]; this.m_bln_IaTimesSelected = new bool[int_MaxTimes]; this.m_flt_IaPhase = new float[int_MaxTimes]; this.m_flt_IaValue = new float[int_MaxTimes]; this.m_bln_IbTimesSelected = new bool[int_MaxTimes]; this.m_flt_IbPhase = new float[int_MaxTimes]; this.m_flt_IbValue = new float[int_MaxTimes]; this.m_bln_IcTimesSelected = new bool[int_MaxTimes]; this.m_flt_IcPhase = new float[int_MaxTimes]; this.m_flt_IcValue = new float[int_MaxTimes]; }
private void PicSizeChanged(object sender, EventArgs e) { System.Threading.Thread.Sleep(1); this.m_cce_Curve = new CCLCurve((System.Windows.Forms.PictureBox)sender); this.m_int_ScaleWidth = this.m_cce_Curve.ScaleWidth; this.m_int_ScaleHeight = this.m_cce_Curve.ScaleHeight; this.Draw(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="pic_PicMap">图</param> public CCLHarmonious(System.Windows.Forms.PictureBox pic_PicMap) { this.m_cce_Curve = new CCLCurve(pic_PicMap); this.m_bln_XXSelected = new bool[] { false, false, false, false, false, false }; pic_PicMap.SizeChanged += new EventHandler(pic_PicMap_SizeChanged); this.m_cce_Curve.ShowPI = true; this.m_cce_Curve.AxisType = AxisType.LeftMiddle; this.m_int_ScaleWidth = this.m_cce_Curve.ScaleWidth; this.m_int_ScaleHeight = this.m_cce_Curve.ScaleHeight; this.m_cce_Curve.Margin = 10; this.m_cce_Curve.Lines.Add(6); //Ua/Ub/Uc/Ia/Ib/Ic this.m_bln_UaTimesSelected = new bool[m_int_MaxTimes]; this.m_flt_UaPhase = new float[m_int_MaxTimes]; this.m_flt_UaValue = new float[m_int_MaxTimes]; this.m_bln_UbTimesSelected = new bool[m_int_MaxTimes]; this.m_flt_UbPhase = new float[m_int_MaxTimes]; this.m_flt_UbValue = new float[m_int_MaxTimes]; this.m_bln_UcTimesSelected = new bool[m_int_MaxTimes]; this.m_flt_UcPhase = new float[m_int_MaxTimes]; this.m_flt_UcValue = new float[m_int_MaxTimes]; this.m_bln_IaTimesSelected = new bool[m_int_MaxTimes]; this.m_flt_IaPhase = new float[m_int_MaxTimes]; this.m_flt_IaValue = new float[m_int_MaxTimes]; this.m_bln_IbTimesSelected = new bool[m_int_MaxTimes]; this.m_flt_IbPhase = new float[m_int_MaxTimes]; this.m_flt_IbValue = new float[m_int_MaxTimes]; this.m_bln_IcTimesSelected = new bool[m_int_MaxTimes]; this.m_flt_IcPhase = new float[m_int_MaxTimes]; this.m_flt_IcValue = new float[m_int_MaxTimes]; }