private void btn_delete_Click(object sender, EventArgs e)
 {
     if (_SelectItem != null)
     {
         if (MsgBox.Show("確定要刪除 '" + _SelectItem.Text + "' 成績計算規則?", "確定", MessageBoxButtons.OKCancel) == DialogResult.OK)
         {
             string id = (_SelectItem.Tag as ScoreCalcRuleInfo).ID;
             RemoveScoreCalcRule.Delete(id);
             ScoreCalcRule.ScoreCalcRule.Instance.Invok_ScoreCalcRuleDeleted(id);
         }
     }
 }
Beispiel #2
0
        private void btn_delete_Click(object sender, EventArgs e)
        {
            if (_SelectItem == null)
            {
                return;
            }

            SaveAdvTreeExpandStatus();
            if (MsgBox.Show("確定要刪除 '" + GetNodeFullPath(_SelectItem) + "' 成績計算規則?", "確定", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                string id = _SelectItem.Name;
                RemoveScoreCalcRule.Delete(id);
                _SelectItem = null;
                ScoreCalcRule.ScoreCalcRule.Instance.Invok_ScoreCalcRuleDeleted(id);
            }
        }