Example #1
0
 protected override void Start(VgcApis.IService api)
 {
     this.api      = api;
     this.settings = new Services.Settings();
     vgcServers    = api.GetVgcServersService();
     vgcSettings   = api.GetVgcSettingService();
     settings.Run(api);
 }
Example #2
0
 public void Run(VgcApis.IService api)
 {
     this.api      = api;
     this.settings = new Services.Settings();
     vgcServers    = api.GetVgcServersService();
     vgcSettings   = api.GetVgcSettingService();
     settings.Run(api);
 }
Example #3
0
        public void Run(
            VgcApis.Models.IServices.ISettingService vgcSetting)
        {
            this.vgcSetting = vgcSetting;

            userSettings = VgcApis.Libs.Utils
                           .LoadPluginSetting <Models.Data.UserSettings>(
                pluginName, vgcSetting);

            bookKeeper = new VgcApis.Libs.Sys.LazyGuy(
                SaveUserSettingsNow, 30000);
        }
Example #4
0
        public void Run(
            VgcApis.Models.IServices.ISettingService vgcSetting,
            VgcApis.Models.IServices.IServersService vgcServers)
        {
            this.vgcSetting = vgcSetting;
            this.vgcServers = vgcServers;

            userSettins = LoadUserSetting();
            bookKeeper  = new VgcApis.Libs.Sys.LazyGuy(
                SaveUserSetting, 1000 * 60 * 5);
            StartBgStatsDataUpdateTimer();
            vgcServers.OnCoreClosing += OnCoreClosingHandler;
        }
Example #5
0
        protected override void Start(VgcApis.IService api)
        {
            this.api    = api;
            vgcServers  = api.GetVgcServersService();
            vgcSettings = api.GetVgcSettingService();

            settings  = new Services.Settings();
            luaServer = new Services.LuaServer();

            settings.Run(vgcSettings);
            luaServer.Run(settings, vgcServers);

            // debug
            // this.Popup();
            // formMain.Activate();
        }
Example #6
0
 public void Run(
     VgcApis.Models.IServices.ISettingService setting)
 {
     this.setting = setting;
     userSettings = LoadUserSettings();
 }
Example #7
0
 public void Run(VgcApis.IService vgcApi)
 {
     vgcServers   = vgcApi.GetVgcServersService();
     vgcSetting   = vgcApi.GetVgcSettingService();
     userSettings = LoadUserSettings();
 }