示例#1
0
 /// <summary>
 /// 读取配置信息
 /// </summary>
 public void LoadConfigs()
 {
     try
     {
         FtpStore.LoadConfig(this);
         if (File.Exists(Config.CertificatePath))    //有X509证书
         {
             ImportCertificate(Config.CertificatePath, Config.CertificatePassword);
         }
         FtpStore.LoadUserGroups(this);
         FtpStore.LoadUsers(this);
     }
     catch (Exception)
     {
         Console.WriteLine("ERROR when loading configs...");
         //throw;
     }
 }
示例#2
0
 public void SaveConfigs()
 {
     FtpStore.SaveConfig(this);
     FtpStore.SaveUserGroups(this);
     FtpStore.SaveUsers(this);
 }