AJH.CMS.WEB.UI.Admin.ManageGallery_UC.dlsGallery_ItemCommand C# (CSharp) Method

dlsGallery_ItemCommand() private method

private dlsGallery_ItemCommand ( object source, System.Web.UI.WebControls.DataListCommandEventArgs e ) : void
source object
e System.Web.UI.WebControls.DataListCommandEventArgs
return void
        void dlsGallery_ItemCommand(object source, DataListCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "EditGallery":
                    int GalleryID = 0;
                    int.TryParse(e.CommandArgument.ToString(), out GalleryID);

                    if (GalleryID > 0)
                    {
                        ViewState[CMSViewStateManager.GalleryID] = GalleryID;
                        SelectedParentGalleryObjID = GalleryID;

                        BeginEditMode();
                        upnlGalleryItem.Update();
                        upnlGalleryAdd.Update();
                    }
                    break;
            }
        }
        #endregion