/// <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; } }
public void SaveConfigs() { FtpStore.SaveConfig(this); FtpStore.SaveUserGroups(this); FtpStore.SaveUsers(this); }