Ejemplo n.º 1
0
        /// <summary>
        /// 修改是否显示的状态
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void sbShow_Click(object sender, EventArgs e)
        {
            StateShow ub    = (StateShow)sender;
            int       index = ((GridViewRow)(ub.Parent.Parent)).RowIndex;
            int       id    = int.Parse(this.GridView1.DataKeys[index].Value.ToString());

            //
            Song.Entities.Links entity = Business.Do <ILinks>().LinksSingle(id);
            entity.Lk_IsShow = !entity.Lk_IsShow;
            Business.Do <ILinks>().LinksSave(entity);
            BindData(null, null);
        }
Ejemplo n.º 2
0
 void ShowMsg(string str)
 {
     StateShow.AppendText(str + "\r\n");
 }