Esempio n. 1
0
        /// <summary>
        /// Returns a SnackBarConfiguration object
        /// </summary>
        /// <returns>A SnackBarConfiguration instance</returns>
        public static SnackBarConfiguration GetConfiguration()
        {
            //Instantiating a Configuration object
            SnackBarConfiguration snackBarConfiguration = new SnackBarConfiguration();
            string connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["Development"].ConnectionString;

            snackBarConfiguration.ConnectionString = connectionString;

            return snackBarConfiguration;
        }
Esempio n. 2
0
 public DefaultController()
 {
     this.configuration = Util.GetConfiguration();
     this.Connection = new SqlConnection(this.configuration.ConnectionString);
 }