Orange Book
橙皮书
橙皮书
橘皮书
桔皮书
橙色书
短语
The Orange Fairy Book 橘色童话
Orange Book Part III 适用于符合橘皮书
Electronic Orange Book 橙色数据库
1
(报道食品或其他商品的)黄皮书,橘皮书
2
[亦作Orange Book] 计算机橙皮书(美国国防部出版的《受托计算机的评估标准》一书的俗名)
3
橙皮书(《农业渔业部关于市场问题报告》)
双语例句 权威例句
1
Orange Book: Physical format for recordable CDs
橙皮书:可刻录 CD 的物理格式
2
cdrecord records data on Orange Book CD-R/RWs, which is pretty much all ofthem 跟读
cdrecord 命令在 橙皮书(Orange Book)CD-R/RW 上刻录数据,这差不多就是其全部工作了。
你可以参考一下:
1、定义一个Button类的子类,在子类中实现你要的所有功能。
进菜单,工程-添加-新建项,新建一个如下的C#类:
public class MyButton : SystemWindowsFormsButton
{
public MyButton()
{
thisBackColor=SystemDrawingColorBlue;
thisClick+=delegate(object sender, EventArgs e)
{
thisBackColor=SystemDrawingColorOrange;
MyButtonClickedButton=this;
};
thisMouseEnter+=delegate(object sender, EventArgs e)
{
if(null!=MyButtonClickedButton)
{
MyButtonClickedButtonBackColor=SystemDrawingColorBlue;
}
thisBackColor=SystemDrawingColorOrange;
};
thisMouseLeave+=delegate(object sender, EventArgs e)
{
if(null!=MyButtonClickedButton)
{
MyButtonClickedButtonBackColor=SystemDrawingColorOrange;
}
if(MyButtonClickedButton!=this)
{
thisBackColor=SystemDrawingColorBlue;
}
};
}
private static MyButton ClickedButton=null;
}
2、在窗体的“工具”中,选择“自定义组件”,将若干个MyButton拖到窗体中。
private void Form1_Load(object sender, EventArgs e)
{
DataGridViewTextBoxColumn name1 = new DataGridViewTextBoxColumn();
name1Name = "name"; name1HeaderText = "name";
dataGridView1ColumnsAddRange(new SystemWindowsFormsDataGridViewColumn []{name1});
//加第一个字段
DataGridViewCheckBoxColumn apple=new DataGridViewCheckBoxColumn ();
appleName = "apple"; appleHeaderText = "apple";
dataGridView1ColumnsAddRange(new SystemWindowsFormsDataGridViewColumn[] {
apple});//加第二个。
DataGridViewCheckBoxColumn orange = new DataGridViewCheckBoxColumn();
orangeName = "orange"; orangeHeaderText = "orange";
dataGridView1ColumnsAddRange(new SystemWindowsFormsDataGridViewColumn[] {
orange});//加第三个。
DataGridViewCheckBoxColumn banana = new DataGridViewCheckBoxColumn();
bananaName = "banana"; bananaHeaderText = "banana";
dataGridView1ColumnsAddRange(new SystemWindowsFormsDataGridViewColumn[] {
banana});//加第四个。
string con = "server=192160188;database=MYLX;uid=ss;pwd=123";
SqlConnection conn = new SqlConnection(con);//数据库连接
string sql = "select name,apple,orange,banana from table1";
SqlDataAdapter sda = new SqlDataAdapter(sql,conn);
DataSet ds = new DataSet();//数据读取
sdaFill(ds);//填充
ds = convert(ds);//调用方法
dataGridView1Columns[0]DataPropertyName = "name";//数据绑定
dataGridView1Columns[1]DataPropertyName = "apple";//数据绑定
dataGridView1Columns[2]DataPropertyName = "orange";//数据绑定
dataGridView1Columns[3]DataPropertyName = "banana";//数据绑定
dataGridView1DataSource = dsTables[0]DefaultView;//数据绑定
}
DataSet convert(DataSet ds)
{
int col = dsTables[0]ColumnsCount;//获取行
int row = dsTables[0]RowsCount;//获取列
//dataGridView1 中的checkbox只接受bool类型的值的所以这里面要转换一下!
for (int j = 0; j < row; j++)
{
for (int i = 1; i < col; i++)
{
//把为1的写写true
if (dsTables[0]Rows[j][i]ToString ()Trim () == "1")
{
dsTables[0]Rows[j][i] = "true";
}
//把不为1的写成false
else
{
dsTables[0]Rows[j][i]="false";
}
}
}
return ds;
}
以上就是关于orange book是什么意思全部的内容,包括:orange book是什么意思、C#如何点击一个按纽,其余按纽恢复默认色、C#的datagrid中添加复选框的问题等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)