Ejemplo n.º 1
0
        private void btnDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (BsfGlobal.FindPermission("NearByServices Master-Delete") == false)
            {
                MessageBox.Show("You don't have Rights to NearByServices Master-Delete");
                return;
            }
            ProjectInfoBO ServiceBO = new ProjectInfoBO();

            if (MessageBox.Show("Do You want to Delete Row?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No)
            {
                return;
            }
            else
            {
                if (grdServicesMasterView.FocusedRowHandle >= 0)
                {
                    ServiceBO.s_NBSName = grdServicesMasterView.GetRowCellValue(grdServicesMasterView.FocusedRowHandle, "ServiceName").ToString();
                    ProjectInfoDL.DeleteNBSMaster(ServiceBO);
                    grdServicesMasterView.DeleteRow(grdServicesMasterView.FocusedRowHandle);
                }
            }
        }
Ejemplo n.º 2
0
 public static void DeleteNBSMaster(ProjectInfoBO NBSBO)
 {
     ProjectInfoDL.DeleteNBSMaster(NBSBO);
 }