Exemple #1
0
 public void ModuleInitialize(SACInitialize initialize)
 {
     ConfigMail = new ConfigManager <Models.MailConfig>(initialize.ConfigurationPath, "mail.json",
                                                        new Models.MailConfig(), Misc.MailBoxConfigSync);
     ConfigCaptcha = new ConfigManager <Models.CaptchaConfig>(initialize.ConfigurationPath, "captcha.json",
                                                              new Models.CaptchaConfig(), Misc.CaptchaConfigSync);
 }
Exemple #2
0
        public void ModuleInitialize(SACInitialize initialize)
        {
            Config = new ConfigManager <Models.MailConfig>(initialize.ConfigurationPath, "mail.json",
                                                           new Models.MailConfig(), Misc.MailBoxConfigSync);
            if (!Config.Load())
            {
                Config.Save();
            }

            Logger = initialize.Logger;
        }
        public void ModuleInitialize(SACInitialize initialize)
        {
            GuiConfiguration = new Gui.Configuration();
            GuiConfiguration.ModuleInitialize(initialize);

            MailBox = new MailBox();
            MailBox.ModuleInitialize(initialize);

            ImageCaptcha = new ImageCaptcha();
            ImageCaptcha.ModuleInitialize(initialize);

            ReCaptcha = new ReCaptcha();
            ReCaptcha.ModuleInitialize(initialize);
        }
        public void ModuleInitialize(SACInitialize initialize)
        {
            Logger = initialize.Logger;

            HttpClient = new RestClient();
            HttpClient.AddDefaultParameter("json", 0);

            Config = new ConfigManager <Configuration>(initialize.ConfigurationPath, "config.json", new Configuration(), Sync);
            if (!Config.Load())
            {
                Logger.Warn("Cannot load config. You probably need to configure new one.");
                Config.Save();
            }

            Window = new ConfigurationForm();
        }
 public void ModuleInitialize(SACInitialize initialize)
 {
 }