/*--- 關閉問事表 ---*/ public void CloseTable(IconButton tableLabel) { tableLabel.Dispose(); //移除問事表標籤 tableLabel_count--; /*-- 當標籤數為0時,禁用問事表按鈕 --*/ if (tableLabel_count == 0) { menuTableBtn.Enabled = false; //禁用 menuTableBtn.BackColor = OftenUseColor.menuOffStatusColor; menuTableBtn.IconColor = OftenUseColor.menuDisableTxtColor; tableTitleLbl.Visible = true; //顯示遮擋用的文字 labelsAreaPan.Visible = false; //隱藏問事表標籤區 iconOnOff.Visible = false; //隱藏展開圖示 } }