}//end load user list /// <summary> /// this method will load the appllications on llist box /// </summary> private void BugAppListData() { Applications applications = new Applications(); List <App> app = applications.GetApplicationList(); //creating a list of applications by calling the GetApplicationList method app.Insert(0, new App() { ApplicationName = "<Select Application>"//adding new element in top of the app id }); BugAppList.DataSource = app; BugAppList.DisplayMember = "ApplicationName"; }
}//end button logon click //--------------------------------------------------------------------------------------------------------------// //---------------------------------- Applications Group --------------------------------------------------------// //--------------------------------------------------------------------------------------------------------------// /// <summary> /// this methods loads all the applications name on the applist box /// </summary> private void LoadApplicationList() { //creating new users object called users Applications application = new Applications(); List <App> app = application.GetApplicationList(); //creating a list of applications by calling the GetApplicationList method app.Insert(0, new App() { ApplicationName = "<Add New>"//adding new element in top of the app id }); AppList.DataSource = app; AppList.DisplayMember = "ApplicationName"; //defining the memeber that i want to display }//end load user list
private void InstallOnRootWeb() { SPSecurity.RunWithElevatedPrivileges(delegate { using (var site = new SPSite(oWeb.Site.ID)) { var list = Applications.GetApplicationList(site.RootWeb); if (list != null) { var li = list.Items.Add(); li["Title"] = appDef.Title; li["EXTID"] = appDef.Id; li["AppVersion"] = appDef.Version; li["Icon"] = appDef.Icon; li["Status"] = "Not Installed"; li["InstallXML"] = appDef.ApplicationXml.OuterXml; li["AppUrl"] = appDef.fullurl; li.Update(); } } }); }