public GameScanProgressForm(string gameFilesPath, bool isSteam = false, int concurrentDownload = 0) { InitializeComponent(); if (string.IsNullOrWhiteSpace(gameFilesPath)) { throw new Exception(@"Game files path is empty!"); } SkinHelperFonts.SetFont(Controls); if (!Directory.Exists(gameFilesPath)) { Directory.CreateDirectory(gameFilesPath); } _concurrentDownload = concurrentDownload; _gameScanner = new GameScannerManager(gameFilesPath, isSteam); lbl_ProgressTitle.Text = string.Empty; lbl_ProgressDetail.Text = string.Empty; lbl_GlobalProgress.Text = string.Empty; label1.Text = string.Empty; pB_GlobalProgress.Value = 0; pB_SubProgress.Value = 0; }
public CustomBtnSplit() { InitializeComponent(); //Configure Fonts SkinHelperFonts.SetFont(Controls); }
public ScnManagerForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); if (!Directory.Exists(_scnPath)) { Directory.CreateDirectory(_scnPath); } RefreshList(); _folderListener = new FileSystemWatcher(_scnPath, "*.age4scn") { NotifyFilter = //NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.DirectoryName | NotifyFilters.FileName | //NotifyFilters.LastAccess | NotifyFilters.LastWrite | //NotifyFilters.Security | NotifyFilters.Size }; _folderListener.Changed += FolderListenerEvent; _folderListener.Created += FolderListenerEvent; _folderListener.Deleted += FolderListenerEvent; _folderListener.Renamed += FolderListenerEvent; _folderListener.IncludeSubdirectories = true; _folderListener.EnableRaisingEvents = true; }
public MpSettingForm(MpSettings mpSettings) { InitializeComponent(); SkinHelperFonts.SetFont(Controls); //MpSettings if (mpSettings.IsOnline) { rb_Wan.Checked = true; } else { rb_Lan.Checked = true; } if (mpSettings.AutoPortMapping) { rb_Automatic.Checked = true; } else { rb_Manual.Checked = true; } //numericUpDown2.Value = mpSettings.PublicPort; }
public UpdaterForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); richTextBox1.SetInnerMargins(20, 15, 20, 15); }
public FirewallForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); label3.Text = $@"API: {FirewallManager.Version}"; }
public MsgBoxYesNo(string message) { InitializeComponent(); SkinHelperFonts.SetFont(Controls); label1.Text = message; }
public GameScanProgressForm(GameScannnerApi gameScannnerApi) { InitializeComponent(); SkinHelperFonts.SetFont(Controls); GameScannner = gameScannnerApi; lbl_ProgressTitle.Text = string.Empty; lbl_ProgressDetail.Text = string.Empty; lbl_GlobalProgress.Text = $@"0/{GameScannner.FilesInfo.Count()}"; pB_GlobalProgress.Value = 0; pB_SubProgress.Value = 0; tB_Report.Text = string.Empty; }
public GameScan() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); if (Program.UserConfig != null && !string.IsNullOrWhiteSpace(Program.UserConfig.GameFilesPath)) { tb_GamePath.Text = Program.UserConfig.GameFilesPath; } else { tb_GamePath.Text = GameScannerManager.GetGameFilesRootPath(); } }
public EditorForm() { var path = !string.IsNullOrWhiteSpace(Program.UserConfig.GameFilesPath) ? Program.UserConfig.GameFilesPath : GameScannnerApi.GetGameFilesRootPath(); try { _gameScannner = GameScannnerApi.InstallGameEditor(Program.UserConfig.IsSteamVersion, path); } catch (Exception) { // } InitializeComponent(); SkinHelperFonts.SetFont(Controls); if (_gameScannner != null && DownloadFileUtils.IsConnectedToInternet()) { if (_gameScannner.QuickScan().GetAwaiter().GetResult()) { Btn_Install_Editor.Enabled = false; btn_Browse.Enabled = true; label2.Text = @"Installed"; label2.ForeColor = Color.Green; _isAutoRun = true; } else { label2.Text = @"Non-Installed Or Outdated"; label2.ForeColor = Color.Red; Btn_Install_Editor.Enabled = true; btn_Browse.Enabled = false; } } else { Btn_Install_Editor.Enabled = true; btn_Browse.Enabled = true; label2.Text = @"Unknow"; label2.ForeColor = Color.OrangeRed; } }
public LoginForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); //Load UserConfig if (Program.UserConfig?.LoginInfo?.RememberMe != true) { return; } tb_Mail.Text = Program.UserConfig.LoginInfo.Email; tb_Password.Text = Program.UserConfig.LoginInfo.Password; cb_RememberMe.Checked = Program.UserConfig.LoginInfo.RememberMe; }
public MpSettingForm(MpSettings mpSettings) { InitializeComponent(); SkinHelperFonts.SetFont(Controls); //MpSettings switch (mpSettings.ConnectionType) { case ConnectionType.Wan: rb_Wan.Checked = true; break; case ConnectionType.Lan: rb_Lan.Checked = true; break; case ConnectionType.Other: rb_Other.Checked = true; break; default: throw new ArgumentOutOfRangeException(nameof(mpSettings.ConnectionType), mpSettings.ConnectionType, null); } switch (mpSettings.PortMappingType) { case PortMappingType.NatPunch: rb_NatPunchtrough.Checked = true; break; case PortMappingType.Upnp: rb_UPnP.Checked = true; break; case PortMappingType.Manual: rb_Manual.Checked = true; break; default: throw new ArgumentOutOfRangeException(nameof(mpSettings.PortMappingType), mpSettings.PortMappingType, null); } }
public GameScanProgressForm(string gameFilesPath, bool isSteam) { InitializeComponent(); if (string.IsNullOrWhiteSpace(gameFilesPath)) { throw new Exception(@"Game files path is empty!"); } SkinHelperFonts.SetFont(Controls); if (!Directory.Exists(gameFilesPath)) { Directory.CreateDirectory(gameFilesPath); } GameScannner = new GameScannnerApi(gameFilesPath, isSteam); lbl_ProgressTitle.Text = string.Empty; lbl_ProgressDetail.Text = string.Empty; lbl_GlobalProgress.Text = $@"0/{GameScannner.FilesInfo.Count()}"; pB_GlobalProgress.Value = 0; pB_SubProgress.Value = 0; tB_Report.Text = string.Empty; }
public ChangePwdForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }
public LanguageChooser() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }
public InstallProcDump() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }
public RegisterForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }
public FriendsForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }
public WindowsFeaturesForm() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }
public NetworkDeviceSelectionDialog() { InitializeComponent(); SkinHelperFonts.SetFont(Controls); }