コード例 #1
0
ファイル: TabEditorCtrl.cs プロジェクト: thatformat/V2RayGCon
        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
ファイル: FormLog.cs プロジェクト: ghotm/V2RayGCon
        private void FormLog_Load(object sender, System.EventArgs e)
        {
            // throw new NullReferenceException("for debugging");

            repaintCtrl          = new VgcApis.Libs.Views.RepaintCtrl(rtBoxLogger);
            updateLogTimer.Tick += UpdateLog;
            updateLogTimer.Start();
        }
コード例 #3
0
ファイル: TabEditorCtrl.cs プロジェクト: ghotm/V2RayGCon
        public void Run(
            VgcApis.Interfaces.Services.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer)
        {
            this.settings    = settings;
            this.luaServer   = luaServer;
            this.luaCoreCtrl = CreateLuaCoreCtrl(settings, api);

            InitControls();
            BindEvents();

            ReloadScriptName();

            repaintCtrl = new VgcApis.Libs.Views.RepaintCtrl(rtboxOutput);
            logUpdater.Run();
        }
コード例 #4
0
 private void FormSingleServerLog_Load(object sender, EventArgs e)
 {
     logUpdater.Run();
     repaintCtrl = new VgcApis.Libs.Views.RepaintCtrl(rtBoxLogger);
 }
コード例 #5
0
ファイル: FormLog.cs プロジェクト: torgitor/vrGCon
 private void FormLog_Load(object sender, System.EventArgs e)
 {
     repaintCtrl          = new VgcApis.Libs.Views.RepaintCtrl(rtBoxLogger);
     updateLogTimer.Tick += UpdateLog;
     updateLogTimer.Start();
 }