public CustomBtn() { InitializeComponent(); //Configure Fonts SkinHelper.SetFont(Controls); }
public ChangePwdForm() { InitializeComponent(); //Configure Fonts SkinHelper.SetFont(Controls); }
public RegisterForm() { InitializeComponent(); //Configure Fonts SkinHelper.SetFont(Controls); }
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); } } }
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; }
public BtnSmall() { InitializeComponent(); //Configure Fonts SkinHelper.SetFont(Controls); }
public BoxContainer() { InitializeComponent(); //Configure Fonts SkinHelper.SetFont(Controls); }
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(); }
public UpdaterForm() { InitializeComponent(); SkinHelper.SetFont(Controls); richTextBox1.SetInnerMargins(20, 15, 20, 15); }
public MsgBoxYesNo(string message) { InitializeComponent(); SkinHelper.SetFont(Controls); label1.Text = message; }
public MsgBox(string message) { InitializeComponent(); label1.Text = message; //Configure Fonts SkinHelper.SetFont(Controls); }
public MainContainer() { InitializeComponent(); ////Set Skin //TopLeftFixed.BackgroundImage = CustomSkinMainContainer.TopLeftFixed; //TopRigthFixed.BackgroundImage = CustomSkinMainContainer.TopRigthFixed; //TopMiddleFluid.BackgroundImage = CustomSkinMainContainer.TopMiddleFluid; //Configure Fonts SkinHelper.SetFont(Controls); }
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; }
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}"; }
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; }
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; } }
public LanguageChooser() { InitializeComponent(); SkinHelper.SetFont(Controls); }
public FriendsForm() { InitializeComponent(); SkinHelper.SetFont(Controls); }
public RegisterForm() { InitializeComponent(); SkinHelper.SetFont(Controls); }
public SteamForm() { InitializeComponent(); SkinHelper.SetFont(Controls); }
public ResetPwdForm() { InitializeComponent(); SkinHelper.SetFont(Controls); }
public WindowsFeaturesForm() { InitializeComponent(); SkinHelper.SetFont(Controls); }
public NetworkDeviceSelectionDialog() { InitializeComponent(); SkinHelper.SetFont(Controls); }