private void BtnCancel_Click(object sender, EventArgs e) { InitControls(); myMode = BtnMode.NONE; // 모드 초기화 GrdBooksTbl.Focus(); }
private void BtnDelete_Click(object sender, EventArgs e) { if (myMode != BtnMode.UPDATE) { MetroMessageBox.Show(this, $"삭제할 데이터를 선택하세요.", "알림"); return; } myMode = BtnMode.DELETE; //DeleteData(); SaveData(); InitControls(); GrdBooksTbl.Focus(); }