public static DynamicConfigs GetConfigs()
 {
     var conf = new DynamicConfigs();
     ContactsEntities db = new ContactsEntities();
     foreach (Configs configse in db.Configs.ToList())
     {
         switch (configse.ConfigKey.ToLower())
         {
             case "password":
                 conf.Password = configse.ConfigValue;
                 break;
             case "version":
                 conf.Version = configse.ConfigValue;
                 break;
             case "checkversionurl":
                 conf.CheckVersionUrl = configse.ConfigValue;
                 break;
         }
     }
     return conf;
 }
        public static DynamicConfigs GetConfigs()
        {
            var conf            = new DynamicConfigs();
            ContactsEntities db = new ContactsEntities();

            foreach (Configs configse in db.Configs.ToList())
            {
                switch (configse.ConfigKey.ToLower())
                {
                case "password":
                    conf.Password = configse.ConfigValue;
                    break;

                case "version":
                    conf.Version = configse.ConfigValue;
                    break;

                case "checkversionurl":
                    conf.CheckVersionUrl = configse.ConfigValue;
                    break;
                }
            }
            return(conf);
        }
Beispiel #3
0
 public Login(DynamicConfigs conf1)
 {
     _conf = conf1;
     InitializeComponent();
 }