예제 #1
0
        //****************************************************************
        //
        // The DeleteBtn_Click event handler on this Page is used to delete an
        // an event.  It  uses the Nairc.KPWPortal.EventsDB() data component to
        // encapsulate all data functionality.
        //
        //****************************************************************
        protected void DeleteBtn_Click(Object sender, EventArgs e)
        {
            // Only attempt to delete the item if it is an existing item
            // (new items will have "ItemId" of 0)

            if (itemId != 0)
            {
                IDesktopModulesFacade facade = new DesktopModulesFacade();
                facade.DeleteEvent(itemId);
            }

            // Redirect back to the portal home page
            Response.Redirect((String) ViewState["UrlReferrer"]);
        }
 public void DeleteEventTest()
 {
     //void DeleteEvent(int itemID)
     DesktopModulesFacade facade = new DesktopModulesFacade();
     facade.DeleteEvent(0);
 }