コード例 #1
0
        protected override void Start(VgcApis.Interfaces.Services.IApiService api)
        {
            this.api   = api;
            vgcSetting = api.GetSettingService();
            vgcServers = api.GetServersService();

            settings = new Services.Settings();
            settings.Run(vgcSetting, vgcServers);
        }
コード例 #2
0
 public LuaSys(
     LuaApis luaApis,
     Func <List <Type> > getAllAssemblies)
 {
     this.luaApis          = luaApis;
     this.getAllAssemblies = getAllAssemblies;
     this.postOffice       = luaApis.GetPostOffice();
     this.vgcServerService = luaApis.GetVgcServerService();
 }
コード例 #3
0
ファイル: Misc.cs プロジェクト: blackcatpolice/V2RayGCon
 public Misc(
     Services.Settings settings,
     VgcApis.Interfaces.Services.IApiService api)
 {
     this.settings = settings;
     vgcUtils      = api.GetUtilsService();
     vgcSlinkMgr   = api.GetShareLinkMgrService();
     vgcServer     = api.GetServersService();
     vgcSettings   = api.GetSettingService();
 }
コード例 #4
0
 public Misc(
     VgcApis.Interfaces.Services.IApiService api,
     Services.Settings settings,
     Services.FormMgrSvc formMgr)
 {
     this.settings = settings;
     this.formMgr  = formMgr;
     vgcNotifier   = api.GetNotifierService();
     vgcUtils      = api.GetUtilsService();
     vgcSlinkMgr   = api.GetShareLinkMgrService();
     vgcServer     = api.GetServersService();
     vgcSettings   = api.GetSettingService();
 }
コード例 #5
0
ファイル: ServerTracker.cs プロジェクト: ghotm/V2RayGCon
        public void Run(
            PsSettings setting,
            PacServer pacServer,
            VgcApis.Interfaces.Services.IServersService servers,
            VgcApis.Interfaces.Services.INotifierService notifier)
        {
            this.setting   = setting;
            this.pacServer = pacServer;
            this.servers   = servers;
            this.notifier  = notifier;

            Restart();
        }
コード例 #6
0
ファイル: FormMain.cs プロジェクト: RyanFu/V2RayGCon
        public static FormMain CreateForm(
            Services.Settings settings,
            VgcApis.Interfaces.Services.IServersService vgcServers)
        {
            FormMain form = null;

            VgcApis.Misc.UI.Invoke(() =>
            {
                form = new FormMain(settings, vgcServers);
            });

            return(form);
        }
コード例 #7
0
ファイル: Settings.cs プロジェクト: ghotm/V2RayGCon
        public void Run(
            VgcApis.Interfaces.Services.ISettingsService vgcSetting,
            VgcApis.Interfaces.Services.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 += SaveStatDataBeforeCoreClosed;
        }
コード例 #8
0
ファイル: FormMain.cs プロジェクト: ghotm/V2RayGCon
        public FormMain(
            Services.Settings settings,
            VgcApis.Interfaces.Services.IServersService vgcServers)
        {
            this.settings   = settings;
            this.vgcServers = vgcServers;
            InitializeComponent();

            VgcApis.Misc.UI.DoubleBuffered(lvStatsTable, true);

            this.FormClosing += (s, a) => formMainCtrl?.Cleanup();
            VgcApis.Misc.UI.AutoSetFormIcon(this);
            formMainCtrl = InitFormMainCtrl();
        }
コード例 #9
0
ファイル: Settings.cs プロジェクト: jiahua90/V2RayGCon-1
 public void Run(VgcApis.Interfaces.Services.IApiService vgcApi)
 {
     vgcServers   = vgcApi.GetServersService();
     vgcSetting   = vgcApi.GetSettingService();
     userSettings = LoadUserSettings();
 }
コード例 #10
0
 public Server(
     VgcApis.Interfaces.Services.IApiService api)
 {
     vgcServers   = api.GetServersService();
     vgcConfigMgr = api.GetConfigMgrService();
 }
コード例 #11
0
 public Web(VgcApis.Interfaces.Services.IApiService api)
 {
     vgcWeb      = api.GetWebService();
     vgcServers  = api.GetServersService();
     vgcSlinkMgr = api.GetShareLinkMgrService();
 }