private void buttonX3_Click(object sender, EventArgs e) { if (_SelectButton != null) { if (MsgBox.Show("確定要刪除 '" + _SelectButton.Text + "' 課程規劃表?", "確定", MessageBoxButtons.OKCancel) == DialogResult.OK) { RemoveGraduationPlan.Delete(_SelectButton.Name); EventHub.Instance.InvokGraduationPlanDeleted(_SelectButton.Name); } } }
private void btnDelete_Click(object sender, EventArgs e) { if (_SelectItem == null) { return; } if (MsgBox.Show("確定要刪除 '" + GetNodeFullPath(_SelectItem) + "' 課程規劃表?", "確定", MessageBoxButtons.OKCancel) == DialogResult.OK) { SaveAdvTreeExpandStatus(); RemoveGraduationPlan.Delete(_SelectItem.Name); EventHub.Instance.InvokGraduationPlanDeleted(_SelectItem.Name); _SelectItem = null; } }