Пример #1
0
 ///<summary>
 ///checkbutton控制的状态列表的收缩
 /// </summary>
 public static void Contraction(BtnYorN btnYorN, Panel panel, String yorN)
 {
     BtnYorNCtrl.CheckYorN(btnYorN, yorN);
     if (btnYorN.Checked == false)
     {
         panel.Height = 0;
     }
 }
Пример #2
0
 ///<summary>
 ///状态显示更新
 /// </summary>
 public static void StatusChange(BtnYorN btnYorN, ListView listView, String yorN)
 {
     BtnYorNCtrl.CheckYorN(btnYorN, yorN);
     if (yorN == "Mmc_Load" || yorN == "Mmc_Clicked")
     {
         listView.Items[1].SubItems[1].Text = "暂不可用";
     }
     else if (btnYorN.Checked == false)
     {
         listView.Items[1].SubItems[1].Text = "已禁用";
     }
     else
     {
         listView.Items[1].SubItems[1].Text = "启用中";
     }
 }