예제 #1
0
        public void Run(
            VgcApis.Models.IServices.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer)
        {
            this.api        = api;
            this.configMgr  = api.GetConfigMgrService();
            this.vgcServers = api.GetServersService();

            this.settings    = settings;
            this.luaServer   = luaServer;
            this.luaCoreCtrl = CreateLuaCoreCtrl(
                settings, api);

            InitControls();
            BindEvents();

            ReloadScriptName();
            if (cboxScriptName.Items.Count > 0)
            {
                cboxScriptName.SelectedIndex = 0;
            }

            repaintCtrl = new VgcApis.Libs.Views.RepaintCtrl(rtboxOutput);
            logUpdater.Run();
        }
예제 #2
0
        public void Run(
            VgcApis.Models.IServices.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer)
        {
            this.api        = api;
            this.configMgr  = api.GetConfigMgrService();
            this.vgcServers = api.GetServersService();

            this.settings    = settings;
            this.luaServer   = luaServer;
            this.luaCoreCtrl = CreateLuaCoreCtrl(
                settings, api);

            InitControls();
            BindEvents();

            ReloadScriptName();
            if (cboxScriptName.Items.Count > 0)
            {
                cboxScriptName.SelectedIndex = 0;
            }

            updateOutputTimer.Tick += UpdateOutput;
            updateOutputTimer.Start();
        }
예제 #3
0
 public void Run(VgcApis.IService api)
 {
     this.api      = api;
     this.settings = new Services.Settings();
     vgcServers    = api.GetVgcServersService();
     vgcSettings   = api.GetVgcSettingService();
     settings.Run(api);
 }
예제 #4
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);
 }
예제 #5
0
 public void Run(
     Services.Settings settings,
     VgcApis.Models.IServices.IServersService vgcServers)
 {
     this.settings          = settings;
     this.vgcServers        = vgcServers;
     this.redirectLogWorker = settings.SendLog;
 }
예제 #6
0
        protected override void Start(VgcApis.Models.IServices.IApiService api)
        {
            this.api   = api;
            vgcSetting = api.GetSettingService();
            vgcServers = api.GetServersService();

            settings = new Services.Settings();
            settings.Run(vgcSetting, vgcServers);
        }
예제 #7
0
        public void Run(
            Settings settings,
            VgcApis.Models.IServices.IServersService vgcServers)
        {
            this.settings = settings;
            this.luaApis  = new Models.Apis.LuaApis();
            luaApis.Run(settings, vgcServers);

            luaCoreCtrls = InitLuaCores(settings, luaApis);
            WakeUpAutoRunScripts();
        }
예제 #8
0
        public void Run(
            PsSettings setting,
            PacServer pacServer,
            VgcApis.Models.IServices.IServersService servers)
        {
            this.setting   = setting;
            this.pacServer = pacServer;
            this.servers   = servers;

            Restart();
        }
예제 #9
0
 public LuaApis(
     Services.Settings settings,
     VgcApis.Models.IServices.IApiService api)
 {
     this.settings          = settings;
     this.vgcConfigMgr      = api.GetConfigMgrService();
     this.vgcServers        = api.GetServersService();
     this.vgcWeb            = api.GetWebService();
     this.vgcUtils          = api.GetUtilsService();
     this.redirectLogWorker = settings.SendLog;
 }
예제 #10
0
 public FormMain(
     VgcApis.Models.IServices.IServersService vgcServers,
     Services.Settings settings,
     Services.LuaServer luaServer)
 {
     this.vgcServers = vgcServers;
     this.settings   = settings;
     this.luaServer  = luaServer;
     InitializeComponent();
     VgcApis.Libs.UI.AutoSetFormIcon(this);
     this.Text = Properties.Resources.Name + " v" + Properties.Resources.Version;
 }
예제 #11
0
        public FormMain(
            Services.Settings settings,
            VgcApis.Models.IServices.IServersService vgcServers)
        {
            this.settings   = settings;
            this.vgcServers = vgcServers;
            InitializeComponent();

            this.FormClosing += (s, a) => formMainCtrl?.Cleanup();
            VgcApis.Libs.UI.AutoSetFormIcon(this);
            formMainCtrl = InitFormMainCtrl();
        }
예제 #12
0
        public void Run(
            VgcApis.Models.IServices.ISettingsService vgcSetting,
            VgcApis.Models.IServices.IServersService vgcServers)
        {
            this.vgcSetting = vgcSetting;
            this.vgcServers = vgcServers;

            userSettins = LoadUserSetting();
            bookKeeper  = new VgcApis.Libs.Tasks.LazyGuy(
                SaveUserSetting, VgcApis.Models.Consts.Intervals.LazySaveStatisticsDatadelay);
            StartBgStatsDataUpdateTimer();
            vgcServers.OnCoreClosing += OnCoreClosingHandler;
        }
예제 #13
0
        public void Run(
            PsSettings setting,
            PacServer pacServer,
            VgcApis.Models.IServices.IServersService servers,
            VgcApis.Models.IServices.INotifierService notifier)
        {
            this.setting   = setting;
            this.pacServer = pacServer;
            this.servers   = servers;
            this.notifier  = notifier;

            Restart();
        }
예제 #14
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;
        }
예제 #15
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();
        }
예제 #16
0
파일: Web.cs 프로젝트: torgitor/vrGCon
 public Web(VgcApis.Models.IServices.IApiService api)
 {
     vgcWeb      = api.GetWebService();
     vgcServers  = api.GetServersService();
     vgcSlinkMgr = api.GetShareLinkMgrService();
 }
예제 #17
0
 public void Run(VgcApis.Models.IServices.IApiService vgcApi)
 {
     vgcServers   = vgcApi.GetServersService();
     vgcSetting   = vgcApi.GetSettingService();
     userSettings = LoadUserSettings();
 }
예제 #18
0
 public Server(
     VgcApis.Models.IServices.IApiService api)
 {
     vgcServers   = api.GetServersService();
     vgcConfigMgr = api.GetConfigMgrService();
 }