/*--- 刪除選取的問事記錄 ---*/ private void btnDelete_Click(object sender, EventArgs e) { Message.ConfirmForm confirmForm = new Message.ConfirmForm("確認要刪除該筆紀錄嗎?"); formFunction.OpenFocusForm(confirmForm); /*-- 確認要刪除 --*/ if (confirmForm.isOk) { DeleteLog(contactNum, tableName); ShowAllAskingLog(contactNum); //顯示DataGridView的內容 /*- 禁用按鈕 -*/ OftenUseColor.ButtonDisable(btnCompleteContent); OftenUseColor.ButtonDisable(btnDelete); } }
/*------ Other *-『DisEditBtn』:禁用 修改、刪除 *-『EnEditBtn』:啟用 修改、刪除 *-『placeView_ColumnHeaderMouseClick』:點擊檢視表標題欄時,不選取資料列 *--------------------------------------------------------------------------*/ /*--- 禁用 修改、刪除 ---*/ private void DisEditBtn() { OftenUseColor.ButtonDisable(btnModify); //禁用修改按鈕 OftenUseColor.ButtonDisable(btnDelete); //禁用刪除按鈕 }
/*--- 禁用編輯按鈕 ---*/ private void DisEditBtn() { OftenUseColor.ButtonDisable(btnCompleteData); OftenUseColor.ButtonDisable(btnDelete); }
/*--- 禁用按鈕 『問事區』 ---*/ private void DisableBtn_askingTable() { OftenUseColor.ButtonDisable(btnEdit); OftenUseColor.ButtonDisable(btnDeleteLog); }
/*--- 禁用按鈕 ---*/ private void DisableButton() { OftenUseColor.ButtonDisable(btnDelete); //禁用『刪除』按鈕 OftenUseColor.ButtonDisable(btnComplete); //禁用『完整內容』按鈕 }