Exemple #1
0
        /// <summary>
        /// Get Application information by application name
        /// </summary>
        /// <param name="application_name">Application Name</param>
        /// <returns>Application_Info Object</returns>
        public static Application_Info GetByName(string application_name)
        {
            try
            {
                Application_Info result = APPLICATIONS.OfType <Application_Info>()
                                          .SingleOrDefault(e => e.ApplicationName == application_name);

                return(result);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }
Exemple #2
0
        /// <summary>
        /// Get Application information by application ID
        /// </summary>
        /// <param name="app"> Application</param>
        /// <returns>Application_Info Object</returns>
        public static Application_Info GetByID(Apps app)
        {
            try
            {
                Application_Info result = APPLICATIONS.OfType <Application_Info>()
                                          .SingleOrDefault(e => e.ApplicationID == (int)app);

                return(result);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }