Example #1
0
        private void simpleButtonAddRecordMony_Click(object sender, EventArgs e)
        {
            FRM_AddMonyRecord frm = new FRM_AddMonyRecord(int.Parse(labelControlIdStudent.Text), "Add");

            frm.ShowDialog();
            loadRecordMony(int.Parse(labelControlIdStudent.Text));
        }
Example #2
0
        private void repositoryEditRecordMony_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            int id = int.Parse(gvMony.GetFocusedRowCellValue("id_Mony").ToString());
            FRM_AddMonyRecord frm = new FRM_AddMonyRecord(id, "Edit");

            frm.ShowDialog();
            loadRecordMony(int.Parse(labelControlIdStudent.Text));
        }