Пример #1
0
        }//----------------------------

        //###############################################END LINKBUTTON lnkReaload EVENTS########################################################

        //###############################################LINKBUTTON lnkWithdraw EVENTS########################################################
        //event is raised when the link is clicked
        private void lnkWithdrawLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            String msgConfirm = "Are you sure you want to withdraw the student from the special class?";

            if (MessageBox.Show(msgConfirm, "Confirm Withdraw", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                this.dgvEnrolled.DataSource  = _specialManager.WithdrawSpecialClassLoad(_loadId);
                this.dgvWithdrawn.DataSource = _specialManager.GetEnrolledWithdrawnSpecialClassLoadTable(false);
            }
        } //----------------------------------