示例#1
0
        public StateControl(HCPlotGraph plotGraph)
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            this.SetThresholds(plotGraph);
        }
示例#2
0
 private void SetThresholds(HCPlotGraph plotGraph)
 {
     this.leftThreshold  = System.Convert.ToInt32(plotGraph.Origin.X) - StateControl.RADIUS;
     this.downThreshold  = System.Convert.ToInt32(plotGraph.Origin.Y) - StateControl.RADIUS;
     this.upThreshold    = System.Convert.ToInt32(plotGraph.Origin.Y - plotGraph.OyLength) - StateControl.RADIUS;
     this.rightThreshold = System.Convert.ToInt32(plotGraph.Origin.X + plotGraph.OxLength) - StateControl.RADIUS;
 }