예제 #1
0
        public CustomBtn()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #2
0
        public ChangePwdForm()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #3
0
        public RegisterForm()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #4
0
        public ManageInviteForm()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);

            foreach (var invite in Program.RemoteUser.Invites)
            {
                if (!invite.Used)
                {
                    var lvi = new ListViewItem
                    {
                        Tag  = invite.Code,
                        Text = invite.Id.ToString()
                    };

                    lv_AvInvite.Items.Add(lvi);
                }
                else
                {
                    var lvi = new ListViewItem
                    {
                        Text = invite.Id.ToString()
                    };
                    lvi.SubItems.Add(invite.UsedByUser);

                    lv_UsedInvite.Items.Add(lvi);
                }
            }
        }
예제 #5
0
        public MpSettingForm(MpSettings mpSettings)
        {
            InitializeComponent();

            SkinHelper.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;
        }
예제 #6
0
        public BtnSmall()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #7
0
        public BoxContainer()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #8
0
        public MainForm()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.SetFont(Controls);

            //Game Lang
            if (Program.UserConfig != null)
            {
                comboBox2.SelectedIndex = (int)Program.UserConfig.GameLanguage;
            }
            else
            {
                comboBox2.SelectedIndex = (int)GameLanguage.enUS;
            }

            //OnPropertyChanged
            Program.WebSocketClient.PropertyChanged += OnPropertyChanged;

            //Login
            if (Program.WebSocketClient.State != WebSocketClientState.Logging ||
                Program.WebSocketClient.State != WebSocketClientState.Logged)
            {
                using (var form = new LoginForm())
                {
                    var dr = form.ShowDialog();

                    if (dr != DialogResult.OK)
                    {
                        Program.WebSocketClient.AgentWebSocket.Close();
                        Environment.Exit(0);
                    }
                }
            }

            //User Info
            if (Program.RemoteUser != null)
            {
                ExecuteUserInfoResultCommand(Program.RemoteUser);
            }

            //Start xLiveBridgeServer
            Program.Server.Setup(Program.ServerConfig);
            Program.Server.Start();

            //Auto-Refresh User Info
            if (_timer != null)
            {
                return;
            }

            _timer           = new Timer(1000 * 60); //60Sec
            _timer.Elapsed  += DoUserInfo;
            _timer.AutoReset = true;
            _timer.Enabled   = true;
            _timer.Enabled   = true;
            _timer.Start();
        }
예제 #9
0
        public UpdaterForm()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);

            richTextBox1.SetInnerMargins(20, 15, 20, 15);
        }
예제 #10
0
        public MsgBoxYesNo(string message)
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);

            label1.Text = message;
        }
예제 #11
0
        public MsgBox(string message)
        {
            InitializeComponent();
            label1.Text = message;

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #12
0
        public MainContainer()
        {
            InitializeComponent();

            ////Set Skin
            //TopLeftFixed.BackgroundImage = CustomSkinMainContainer.TopLeftFixed;
            //TopRigthFixed.BackgroundImage = CustomSkinMainContainer.TopRigthFixed;
            //TopMiddleFluid.BackgroundImage = CustomSkinMainContainer.TopMiddleFluid;

            //Configure Fonts
            SkinHelper.SetFont(Controls);
        }
예제 #13
0
        public LoginForm()
        {
            InitializeComponent();

            SkinHelper.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;
        }
예제 #14
0
        public LoginForm()
        {
            InitializeComponent();

            //Configure Fonts
            SkinHelper.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;

            //Launcher Version
            var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

            lb_Ver.Text = $"v{version.Major}{version.Minor}{version.Build}";
        }
예제 #15
0
        public GameScanProgressForm(string gameFilesPath, bool isSteam, bool isLegacyXLive)
        {
            InitializeComponent();

            if (string.IsNullOrEmpty(gameFilesPath))
            {
                throw new Exception(@"Game files path is empty!");
            }

            SkinHelper.SetFont(Controls);

            if (!Directory.Exists(gameFilesPath))
            {
                Directory.CreateDirectory(gameFilesPath);
            }

            GameScannner            = new GameScannnerApi(gameFilesPath, isSteam, isLegacyXLive);
            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;
        }
예제 #16
0
        public GameScan()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);

            if (Program.UserConfig != null && !string.IsNullOrEmpty(Program.UserConfig.GameFilesPath))
            {
                tb_GamePath.Text = Program.UserConfig.GameFilesPath;
            }
            else
            {
                tb_GamePath.Text = GameScannnerApi.GetGameFilesRootPath();
            }

            if (Program.UserConfig != null && Program.UserConfig.IsLegacyXLive)
            {
                rB_Legacy.Checked = true;
            }
            else
            {
                rB_Sparta.Checked = true;
            }
        }
예제 #17
0
        public LanguageChooser()
        {
            InitializeComponent();

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

            SkinHelper.SetFont(Controls);
        }
예제 #19
0
        public RegisterForm()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);
        }
예제 #20
0
        public SteamForm()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);
        }
예제 #21
0
        public ResetPwdForm()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);
        }
예제 #22
0
        public WindowsFeaturesForm()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);
        }
예제 #23
0
        public NetworkDeviceSelectionDialog()
        {
            InitializeComponent();

            SkinHelper.SetFont(Controls);
        }