Home > Net >  Temporarily suspended, vs code is as follows, please give best solution! Grateful!
Temporarily suspended, vs code is as follows, please give best solution! Grateful!

Time:11-27

Public partial class quxiantu: Form

{public curve CV;

Public StatusList _StatusList;

Public List lstate ; Error: static type cannot be used as a type parameter

Public ListSelectionWrapper StatusSelections; Error: static type cannot be used as a type parameter




For (int I=0; i
If (mylistline [I] IsVisible)

Mylistline [I]. Plist. Add (mylistline [0]. Xdate, mylistline [I] nowdata); Error: Double [] does not contain the definition of the Add, and couldn't find an acceptable first "Double" type parameters can access extension method "Add
"
Scale xScale wasn't entirely=zedGraphControl1. GraphPane. XAxis. Scale;



If (list. Count & gt;
=1000)
{

For (int I=0; i
Mylistline [I]. Plist. RemoveAt (0); Error: Double [] does not contain the RemoveAt definition, and can't find an acceptable first "Double" type parameters can access extension method "RemoveAt
"
}

Private void button15_Click (object sender, EventArgs e)
{
DataGridView1. the DataSource =null;//each open empty content error: "object" not contained "DataSource" the definition of d, and can't find an acceptable first "object" type parameters can be accessed extension method "DataSource"

The DataTable dt=GetData (). Tables [0].

DataGridView1. the DataSource =dt;
}


Private void quxiantu_Load (object sender, EventArgs e)
{
CV=new curve (3);
Onto the mylistline [0]. Name="steam flow";
Onto the mylistline [0]. Color= Color. DarkRed ; Error: unable to type "system. The Drawing. The color" implicitly converted to "double []
"Onto the mylistline [1]. Name="air flow";
Onto the mylistline [1]. The color= Color. Black ; Error: unable to type "system. The Drawing. The color" implicitly converted to "double []
"Onto the mylistline [2]. Name="cot temperature";
Onto the mylistline [2]. Color= Color. The Gold ; Error: unable to type "system. The Drawing. The color" implicitly converted to "double []
"CV. Curve_init (zedGraphControl1 timer1);

# region POPULATED USING A CUSTOM "IList" DATASOURCE
Lstate=new List the Status & gt; (CV. Linenumber); Error: static type cannot be used as a type parameter
_StatusList=new StatusList ();
For (int I=0; i Lstate. Add ( new Status (1 + I, onto the mylistline [I] name )); Error: unable to create the instance of a static class "VisualStyleElementStatus"
For (int I=0; i _StatusList. Add (lstate (CV. Linenumber - I - 1));
StatusSelections=new ListSelectionWrapper the Status & gt; (_StatusList, "Name"); Error: static type cannot be used as a type parameter


For (int I=0; i StatusSelections. FindObjectWithItem (lstate [I]) Selected =true; Error: "object" does not contain the definition of "Selected", and couldn't find an acceptable first "object" type parameters can be accessed extension method "Selected"
# endregion
CV. Runup=false;

}

CodePudding user response:

Status class definition of lost,
Plist define a double [], into List
The curve definition also has a problem

CodePudding user response:

Supplement: statuslist definition also have no, you get form Using in front of this post out, should be the glue code, less stick a static class, which lack definition type in that class,

CodePudding user response:

This is the reference:
using System;
using System.Collections.Generic;
Using System.Com ponentModel;
Using System. The Data;
Using System. Drawing;
Using System. Linq;
Using System. The Text;
Using System. The Threading. The Tasks;
Using System. Windows. Forms;
Using ZedGraph;
Using System. The Data. The OleDb;
Using the static System. Windows. Forms. VisualStyles. VisualStyleElement;
  •  Tags:  
  • C#
  • Related