private void InitElement() { tboxDebugLogFilePath.Text = setting.DebugLogFilePath; chkIsEnableDebugLogFile.Checked = setting.isEnableDebugLogFile; cboxRandomSelectServerLatency.Text = setting.QuickSwitchServerLantency.ToString(); chkSetUpdateUseProxy.Checked = setting.isUpdateUseProxy; chkSetCheckVgcUpdateWhenAppStart.Checked = setting.isCheckVgcUpdateWhenAppStart; chkSetCheckV2RayCoreUpdateWhenAppStart.Checked = setting.isCheckV2RayCoreUpdateWhenAppStart; chkSetEnableStat.Checked = setting.isEnableStatistics; chkSetUseV4.Checked = setting.isUseV4; chkSetIsSupportSelfSignedCert.Checked = setting.isSupportSelfSignedCert; cboxSettingsUtlsFingerprint.Text = setting.uTlsFingerprint; chkSetIsEnableUtlsFingerprint.Checked = setting.isEnableUtlsFingerprint; chkPortableMode.Checked = setting.isPortable; cboxLanguage.SelectedIndex = (int)setting.culture; cboxPageSize.Text = setting.serverPanelPageSize.ToString(); tboxMaxCoreNum.Text = setting.maxConcurrentV2RayCoreNum.ToString(); var tracker = setting.GetServerTrackerSetting(); chkServAutoTrack.Checked = tracker.isTrackerOn; }
private void InitElement() { chkSetUpdateUseProxy.Checked = setting.isUpdateUseProxy; chkSetCheckWhenAppStart.Checked = setting.isCheckUpdateWhenAppStart; chkSetEnableStat.Checked = setting.isEnableStatistics; chkSetUseV4.Checked = setting.isUseV4; chkPortableMode.Checked = setting.isPortable; cboxLanguage.SelectedIndex = (int)setting.culture; cboxPageSize.Text = setting.serverPanelPageSize.ToString(); tboxMaxCoreNum.Text = setting.maxConcurrentV2RayCoreNum.ToString(); var tracker = setting.GetServerTrackerSetting(); chkServAutoTrack.Checked = tracker.isTrackerOn; }