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;
        }
예제 #2
0
        public CustomBtnSplit()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelperFonts.SetFont(Controls);
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }
예제 #5
0
        public UpdaterForm()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);

            richTextBox1.SetInnerMargins(20, 15, 20, 15);
        }
예제 #6
0
        public FirewallForm()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);

            label3.Text = $@"API: {FirewallManager.Version}";
        }
예제 #7
0
        public MsgBoxYesNo(string message)
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);

            label1.Text = message;
        }
예제 #8
0
        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;
        }
예제 #9
0
        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();
            }
        }
예제 #10
0
        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;
            }
        }
예제 #11
0
        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;
        }
예제 #12
0
        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);
            }
        }
예제 #13
0
        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;
        }
예제 #14
0
        public ChangePwdForm()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }
예제 #15
0
        public LanguageChooser()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }
예제 #16
0
        public InstallProcDump()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }
예제 #17
0
        public RegisterForm()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }
예제 #18
0
        public FriendsForm()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }
예제 #19
0
        public WindowsFeaturesForm()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }
예제 #20
0
        public NetworkDeviceSelectionDialog()
        {
            InitializeComponent();

            SkinHelperFonts.SetFont(Controls);
        }