Пример #1
0
        private void bbi_Add_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmCOURSEADD frm = new frmCOURSEADD();

            frm.ShowDialog();
            ReadData();
        }
Пример #2
0
        private void bbi_Edit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int id = 0;

            if (this.gridView1.RowCount <= 0)
            {
                return;
            }
            id = ToolHelper.ConvertToInt(this.gridView1.GetFocusedRowCellValue("COURSENO").ToString());
            if (id < 1)
            {
                MessageBox.Show("请选择需要修改的课程!", "提示信息");
                return;
            }
            else
            {
                frmCOURSEADD frm = new frmCOURSEADD(id, StatusClass.Edit);
                frm.ShowDialog();
                ReadData();
            }
        }