Esempio n. 1
0
        private void ibtNewDepart_ITC_CLICIK(object sender)
        {
            dAction = DepartAction.newDepart;   //操作行为:新建


            txtDeptName.Clear();
            txtRemark.Clear();
            InitializeGameList();

            dpSet.Visible          = true;
            dpVerticalLine.Visible = true;
        }
Esempio n. 2
0
        private void ibtEditDepart_ITC_CLICIK(object sender)
        {
            dAction = DepartAction.modiDepart;  //操作行为:修改


            try
            {
                selectDepartID = int.Parse(departmentsResult[selectDepartRow, 0].oContent.ToString());
                InitializeGameList();

                txtDeptName.Text       = departmentsResult[selectDepartRow, 1].oContent.ToString();
                txtRemark.Text         = departmentsResult[selectDepartRow, 2].oContent.ToString();
                dpSet.Visible          = true;
                dpVerticalLine.Visible = true;
            }
            catch
            {
                dpSet.Visible          = false;
                dpVerticalLine.Visible = false;
            }
        }