Example #1
0
        public TrojanSettingManager(string SettingPath, InfoDispDelegate InfoDisp, NoticeDispDelegate NotiDisp, TrojanProcessManager Tpm)
        {
            infoDisp = InfoDisp;
            notiDisp = NotiDisp;
            infoDisp("Loading setting file", "LiSettMgmt");

            SettPath = SettingPath;
            Setting  = new TrojanSetting();

            autosave    = new Thread(AutoSave);
            autorestart = new Thread(AutoDetect);

            tpm = Tpm;
        }
Example #2
0
        // Some 'system route' & 'speed test' things will goes here.

        public TrojanNetworkManager(TrojanConfig Config, NoticeDispDelegate NotiDisp)
        {
            conf     = Config;
            notiDisp = NotiDisp;
        }