Home > Net >  C # the great god help look at this is what is not performed
C # the great god help look at this is what is not performed

Time:05-25

 
Private void chart_Wave1_GetToolTipText (object sender, ToolTipEventArgs e)
{
SqlConnection mycon=GetConn ();
Mycon. The Open ();
SqlDataAdapter sda=new SqlDataAdapter (" select * from the 123 ", mycon);
The DataTable table=new DataTable ();
SqlCommand CMD=mycon. CreateCommand ();
Sda. The Fill (table);
Int. ABC=the Convert ToInt16 (table Rows [MainInterface. Inheritannum] [269]. The ToString ());

If (e.H itTestResult. ChartElementType==ChartElementType. Former DataPoint)
{
String xsnr1="";//display content string
String xsnr2="";//display content string
This. Cursor=your Cursors. Cross;
Int I=e.H itTestResult. PointIndex;
Px=I;
If (I & lt; ABC)
{
Xsnr1=shijian [I] the Substring (0, 4) + "years" + shijian [I] the Substring (5, 2) + "month" + shijian [I] the Substring (8, 2) + ", "+" \ n ";
Label9. Text=xsnr1. Substring (0, 12);
Label15. Text=leijidianliang [p]. ToString ();
Label16. Text=leijisijian [p]. ToString ();
Xsnr1=xsnr1 + shijian [I] the Substring (11, 11) + "\ n";
Label10. Text=shijian [I] the Substring (11, 11);
Analog=new string string [] [6].
Sw=new string string [] [8].
For (int k=0; K & lt; 4. K++)
{//show under the four analog numerical
Xsnr1=xsnr1 + LSMN [px, k] the ToString () + "\ n";
This. Controls [" TXT "+ (k + 1). The ToString ()]. The Text=LSMN [px, XSSJ [k]], the ToString ();

//show four on-off state
Xsnr2=xsnr2 + LSKG [px, k] the ToString () + "\ n";
If (LSKG] [px, k==0)
{
This. Controls [" label "+ (k + 1). The ToString ()], BackColor=Color. Red;
This. Controls [" label "+ (k + 1). The ToString ()]. The Text=" 0 ";
}
The else
{
This. Controls [" label "+ (k + 1). The ToString ()], BackColor=Color. Lime;
This. Controls [" label "+ (k + 1). The ToString ()]. The Text=" 1 ";
}
}
Former DataPoint dp=e.H itTestResult. Series. Points [I];
E. ext=the string. Format (xsnr1 + xsnr2);
}
The else
{
This. Cursor=your Cursors. The Default;
}
}
}

If not, why is this? One is the gridlines, one is a former datapoint, this original copy directly the method of online, can also display before, not now, now, I flipped through the original program, also won't show up? Why is this?

CodePudding user response:

Point the wrong location?

CodePudding user response:

I remember the incident as if, there is a control range, can display in the neighborhood
  •  Tags:  
  • C#
  • Related