예제 #1
0
        /// <summary>
        /// 添加按钮响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnAdd_Click(object sender, EventArgs e)
        {
            var d = new TeamInfoEntering();

            if (DialogResult.OK == d.ShowDialog())
            {
                RefreshData();
            }
        }
예제 #2
0
        /// <summary>
        /// 修改按钮响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnModify_Click(object sender, EventArgs e)
        {
            var teamEntity   = (Team)gridView1.GetFocusedRow();
            var teamInfoForm = new TeamInfoEntering(teamEntity);

            if (DialogResult.OK == teamInfoForm.ShowDialog())
            {
                RefreshData();
            }
        }