解释一下
ui.Type = this.cboType.Text == "正常" ? "41" : "40";
是什么意思,尽量具体一些

解决方案 »

  1.   

    如果cboType的文本内容是“正常”,ui.Type 就赋值为“41“,否则赋值为“40”
      

  2.   

    条件运算符,也叫三元运算符...自己去看MSDN...http://msdn.microsoft.com/zh-cn/library/zakwfxx4(VS.80).aspx
      

  3.   

    三元操作符
    条件表达式b?x:y,如果b的值为true,x的值y的值
      

  4.   


     ui.Type = (this.cboType.Text == "正常" ? "41" : "40");
      

  5.   

    ui.Type = this.cboType.Text == "正常" ? "41" : "40"
    如果this.cboType.Text 等于 “正常”   那么this.cboType.Text 赋值为41,
    如果this.cboType.Text 不等于 “正常” 那么this.cboType.Text 赋值为40