Пример #1
0
 public void StoreValues(Data data, string path)
 {
     for (int i = 0; i < DropboxAccounts.Count; i++)
     {
         DropboxAccount tmp = DropboxAccounts[i];
         tmp.StoreValues(data, @"" + path + @"DropboxAccounts\" + i + @"\");
     }
     data.SetValue(@"" + path + @"DropboxAccounts\numClasses", DropboxAccounts.Count.ToString());
 }
Пример #2
0
        public void StoreValues(Data data, string path)
        {
            for (int i = 0; i < DropboxAccounts.Count; i++)
            {
                DropboxAccount tmp = DropboxAccounts[i];
                tmp.StoreValues(data, @"" + path + @"DropboxAccounts\" + i + @"\");
            }
            data.SetValue(@"" + path + @"DropboxAccounts\numClasses", DropboxAccounts.Count.ToString());


            for (int i = 0; i < FtpAccounts.Count; i++)
            {
                FtpAccount tmp = FtpAccounts[i];
                tmp.StoreValues(data, @"" + path + @"FtpAccounts\" + i + @"\");
            }
            data.SetValue(@"" + path + @"FtpAccounts\numClasses", FtpAccounts.Count.ToString());


            for (int i = 0; i < HttpAccounts.Count; i++)
            {
                HttpAccount tmp = HttpAccounts[i];
                tmp.StoreValues(data, @"" + path + @"HttpAccounts\" + i + @"\");
            }
            data.SetValue(@"" + path + @"HttpAccounts\numClasses", HttpAccounts.Count.ToString());


            for (int i = 0; i < SmtpAccounts.Count; i++)
            {
                SmtpAccount tmp = SmtpAccounts[i];
                tmp.StoreValues(data, @"" + path + @"SmtpAccounts\" + i + @"\");
            }
            data.SetValue(@"" + path + @"SmtpAccounts\numClasses", SmtpAccounts.Count.ToString());


            for (int i = 0; i < TimeServerAccounts.Count; i++)
            {
                TimeServerAccount tmp = TimeServerAccounts[i];
                tmp.StoreValues(data, @"" + path + @"TimeServerAccounts\" + i + @"\");
            }
            data.SetValue(@"" + path + @"TimeServerAccounts\numClasses", TimeServerAccounts.Count.ToString());
        }