Beispiel #1
0
 /// <summary>
 /// 保存数据
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件</param>
 private void bSave_Click(object sender, EventArgs e)
 {
     if (HasChanged())
     {
         string strRemarks = "未添加备注";
         if (Class1.CommentOnSave)
         {
             GameDesingerTools.InputBoxForm ibf = new GameDesingerTools.InputBoxForm();
             if (ibf.ShowDialog() == DialogResult.OK)
             {
                 strRemarks = ibf.Remarks;
             }
             else
             {
                 return;
             }
         }
         SaveData(strRemarks);
     }
     else
     {
         MessageBox.Show("选中的行没有内容被改变。");
     }
 }
Beispiel #2
0
 /// <summary>
 /// 保存数据
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件</param>
 private void bSave_Click(object sender, EventArgs e)
 {
     if (HasChanged())
     {
         string strRemarks = "未添加备注";
         if (Class1.CommentOnSave)
         {
             GameDesingerTools.InputBoxForm ibf = new GameDesingerTools.InputBoxForm();
             if (ibf.ShowDialog() == DialogResult.OK)
             {
                 strRemarks = ibf.Remarks;
             }
             else
             {
                 return;
             }                   
         }
         SaveData(strRemarks);
     }
     else
     {
         MessageBox.Show("选中的行没有内容被改变。");
     }
     
 }