private void ListReference_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { Administration.List.ReferencegroupList frmList = new Administration.List.ReferencegroupList(); frmList.StartPosition = FormStartPosition.CenterScreen; frmList.ShowDialog(); }
private void btnDelete_Click(object sender, EventArgs e) { bool isDelete = objrefbl.DeleteReferenceGroup(RefId); if (isDelete) { MessageBox.Show("Delete Successfully!"); tbxName.Text = string.Empty; RefId = 0; tbxName.Focus(); Administration.List.ReferencegroupList frmList = new Administration.List.ReferencegroupList(); frmList.StartPosition = FormStartPosition.CenterScreen; frmList.ShowDialog(); FillReferenceGroup(); } }
private void btnUpdate_Click(object sender, EventArgs e) { ReferenceGroupModel objmodel = new ReferenceGroupModel(); objmodel.Name = tbxName.Text.Trim(); objmodel.ReferenceId = RefId; bool IsUpdate = objrefbl.UpdateReferenceGroup(objmodel); if (IsUpdate) { MessageBox.Show("Update Succufully!"); tbxName.Text = string.Empty; RefId = 0; tbxName.Focus(); Administration.List.ReferencegroupList frmList = new Administration.List.ReferencegroupList(); frmList.StartPosition = FormStartPosition.CenterScreen; frmList.ShowDialog(); FillReferenceGroup(); } }