private void btnSave_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (txtJournalName.Text == "") { MessageBox.Show("You Must Enter Journal Name"); return; } journal.Add(new JournalNames() { JournalCode = int.Parse(txtJournalCode.Text), JournalName = txtJournalName.Text }); btnSave.Enabled = false; btnAddNew.Enabled = btnModify.Enabled = true; MessageBox.Show("New Journal Successfully Added"); FRM_Journal_Load(null, null); } catch (Exception ex) { MessageBox.Show(ex.Message); } }