Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            _tl.AddData(this, _tbName);
            //DataRow dr = DataHelper.mapData.Tables[tbName].NewRow();
            //DataHelper.CopyDataToRow(this, dr);
            //if (string.IsNullOrEmpty(dr["rowState"].ToString()))
            //    dr["rowState"] = "1";
            //DataHelper.mapData.Tables[tbName].Rows.InsertAt(dr, 0);

            //this.Close();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            DataRow[] drRd = DataHelper.XkfyData.Tables["RoutineData"].Select("iRoutineID='" + txtiRoutineID.Text + "'");
            if (drRd.Length > 0)
            {
                lblMsg.Text = string.Format("ID已经存在,为了避免游戏错误,不允许新增相同ID的数据");
                return;
            }
            ToolsHelper th = new ToolsHelper();

            th.AddData(this, "RoutineData");
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     _tl.AddData(this, "DevelopQuestData");
 }
Example #4
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     _tl.AddData(this, "NeigongData");
 }
Example #5
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     _tl.AddData(this, _tbName);
 }
Example #6
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ToolsHelper th = new ToolsHelper();

            th.AddData(this, _tableName);
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ToolsHelper th = new ToolsHelper();

            th.AddData(this, "BattleAbility");
        }