Exemplo n.º 1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components         = new System.ComponentModel.Container();
     this.BindingSource = new VBindingSource();
     this.SyncProfileBankCheckControl    = new VCheckControl();
     this.SyncLoadoutBankCheckControl    = new VCheckControl();
     this.SyncSoulBankCheckControl       = new VCheckControl();
     this.BankBackupFrequencyDescription = new VLabel();
     this.BankBackupFrequencyUnitsLabel  = new VLabel();
     this.BankBackupFrequencyTextBox     = new VTextBox();
     this.BankBackupFrequencyInfoButton  = new VButton();
     this.TitleLabel   = new VLabel();
     this.VersionLabel = new VLabel();
     this.SaveButton   = new VButton();
     //
     // BindingSource
     //
     this.BindingSource.DataSource = typeof(Registry);
     //
     // ProfileTitleLabel
     //
     this.TitleLabel.Name     = "TitleLabel";
     this.TitleLabel.Location = DPIScalingHelper.GetScaledPoint(120, 22);
     this.TitleLabel.Text     = "Settings";
     this.TitleLabel.Font     = new System.Drawing.Font(this.TitleLabel.Font.FontFamily, 14);
     this.TitleLabel.Height   = DPIScalingHelper.GetScaledY(30);
     //
     // VersionLabel
     //
     this.VersionLabel.Name     = "VersionLabel";
     this.VersionLabel.Location = DPIScalingHelper.GetScaledPoint(120, 230);
     this.VersionLabel.Text     = "Version Date: " + VersionHelper.GetVersionBuildDate().ToString("dd-MMM-yyyy");
     //
     // SaveEditButton
     //
     this.SaveButton.DataBindings.Add("Enabled", BindingSource, "HasChanges");
     this.SaveButton.Location = DPIScalingHelper.GetScaledPoint(275, 22);
     this.SaveButton.Name     = "SaveEditButton";
     this.SaveButton.Size     = DPIScalingHelper.GetScaledSize(75, 23);
     this.SaveButton.TabIndex = 0;
     this.SaveButton.Text     = "Save";
     this.SaveButton.Click   += new System.EventHandler(this.SaveEditButton_Click);
     //
     // SyncProfileBankControl
     //
     this.SyncProfileBankCheckControl.Caption = "Sync Profile on app start:";
     this.SyncProfileBankCheckControl.DataBindings.Add("Checked", BindingSource, "SyncProfileWithBank");
     this.SyncProfileBankCheckControl.Location = DPIScalingHelper.GetScaledPoint(200, 60);
     this.SyncProfileBankCheckControl.Name     = "SyncProfileBankCheckControl";
     //
     // SyncLoadoutBankControl
     //
     this.SyncLoadoutBankCheckControl.Caption = "Sync all loadouts on app start:";
     this.SyncLoadoutBankCheckControl.DataBindings.Add("Checked", BindingSource, "SyncLoadoutsWithBank");
     this.SyncLoadoutBankCheckControl.Location = DPIScalingHelper.GetScaledPoint(200, 85);
     this.SyncLoadoutBankCheckControl.Name     = "SyncLoadoutBankCheckControl";
     //
     // SyncSoulBankControl
     //
     this.SyncSoulBankCheckControl.Caption = "Sync all souls on app start:";
     this.SyncSoulBankCheckControl.DataBindings.Add("Checked", BindingSource, "SyncSoulsWithBank");
     this.SyncSoulBankCheckControl.Location = DPIScalingHelper.GetScaledPoint(200, 110);
     this.SyncSoulBankCheckControl.Name     = "SyncSoulBankCheckControl";
     //
     // BankBackupFrequencyTextBox
     //
     this.BankBackupFrequencyTextBox.Caption = "Bank back-up frequency:";
     this.BankBackupFrequencyTextBox.DataBindings.Add("Text", BindingSource, "BackupFrequency");
     this.BankBackupFrequencyTextBox.DataBindings.Add("Enabled", BindingSource, "BackupFrequency_Editable");
     this.BankBackupFrequencyTextBox.Location = DPIScalingHelper.GetScaledPoint(200, 135);
     this.BankBackupFrequencyTextBox.Name     = "BankBackupFrequencyTextBox";
     this.BankBackupFrequencyTextBox.Size     = DPIScalingHelper.GetScaledSize(50, 25);
     //
     // BankBackupFrequencyInfoButton
     //
     this.BankBackupFrequencyInfoButton.Click   += BankBackupFrequencyInfoButton_Click;
     this.BankBackupFrequencyInfoButton.Location = DPIScalingHelper.GetScaledPoint(275, 135);
     this.BankBackupFrequencyInfoButton.Name     = "BankBackupFrequencyInfoButton";
     this.BankBackupFrequencyInfoButton.Size     = DPIScalingHelper.GetScaledSize(25, 25);
     this.BankBackupFrequencyInfoButton.Text     = "?";
     //
     // BankBackupFrequencyUnitsLabel
     //
     this.BankBackupFrequencyUnitsLabel.Location = DPIScalingHelper.GetScaledPoint(250, 136);
     this.BankBackupFrequencyUnitsLabel.Name     = "BankBackupFrequencyUnitsLabel";
     this.BankBackupFrequencyUnitsLabel.Size     = DPIScalingHelper.GetScaledSize(25, 30);
     this.BankBackupFrequencyUnitsLabel.Text     = "RP";
     //
     // RegistryControl
     //
     this.Controls.Add(SyncProfileBankCheckControl);
     this.Controls.Add(SyncLoadoutBankCheckControl);
     this.Controls.Add(SyncSoulBankCheckControl);
     this.Controls.Add(BankBackupFrequencyTextBox);
     this.Controls.Add(BankBackupFrequencyDescription);
     this.Controls.Add(BankBackupFrequencyUnitsLabel);
     this.Controls.Add(BankBackupFrequencyInfoButton);
     this.Controls.Add(VersionLabel);
     this.Controls.Add(SaveButton);
     this.Controls.Add(TitleLabel);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components         = new System.ComponentModel.Container();
     this.BindingSource      = new System.Windows.Forms.BindingSource(this.components);
     this.NameTextBox        = new VUserInterface.VTextBox();
     this.RankDropBox        = new VUserInterface.CommonControls.VDropBox();
     this.PerkPointsLabel2   = new VLabel();
     this.RankPointsTextBox  = new VUserInterface.VTextBox();
     this.ModScoreTextBox    = new VUserInterface.VTextBox();
     this.GemsTextBox        = new VUserInterface.VTextBox();
     this.CPTextBox          = new VUserInterface.VTextBox();
     this.NameLabel          = new VUserInterface.CommonControls.VLabel();
     this.RankLabel          = new VUserInterface.CommonControls.VLabel();
     this.PerkPointsLabel    = new VLabel();
     this.RankPointsLabel    = new VUserInterface.CommonControls.VLabel();
     this.ModScoreLabel      = new VUserInterface.CommonControls.VLabel();
     this.GemsLabel          = new VUserInterface.CommonControls.VLabel();
     this.CPLabel            = new VUserInterface.CommonControls.VLabel();
     this.EditPanel          = new VUserInterface.CommonControls.DPIPanel();
     this.ReadonlyPanel      = new VUserInterface.CommonControls.DPIPanel();
     this.SaveEditButton     = new VUserInterface.CommonControls.VButton();
     this.AchievementsLabel  = new VLabel();
     this.AchievementsButton = new VButton();
     this.ModsButton         = new VButton();
     this.ProfileTitleLabel  = new VLabel();
     ((System.ComponentModel.ISupportInitialize)(this.BindingSource)).BeginInit();
     this.EditPanel.SuspendLayout();
     this.ReadonlyPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // BindingSource
     //
     this.BindingSource.DataSource = typeof(VEntityFramework.Model.VProfile);
     //
     // ProfileTitleLabel
     //
     this.ProfileTitleLabel.Name     = "ProfileTitleLabel";
     this.ProfileTitleLabel.Location = DPIScalingHelper.GetScaledPoint(120, 10);
     this.ProfileTitleLabel.Text     = "Profile";
     this.ProfileTitleLabel.Font     = new System.Drawing.Font(this.ProfileTitleLabel.Font.FontFamily, 14);
     this.ProfileTitleLabel.Height   = DPIScalingHelper.GetScaledY(30);
     //
     // NameTextBox
     //
     this.NameTextBox.Caption = "Name:";
     this.NameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "Name", true));
     this.NameTextBox.Location    = DPIScalingHelper.GetScaledPoint(150, 0);
     this.NameTextBox.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.NameTextBox.Name        = "NameTextBox";
     this.NameTextBox.Size        = DPIScalingHelper.GetScaledSize(150, 24);
     this.NameTextBox.TabIndex    = 0;
     //
     // RankDropBox
     //
     this.RankDropBox.Caption = "Rank:";
     this.RankDropBox.DataBindings.Add("SelectedValue", BindingSource, "Rank");
     this.RankDropBox.List                  = PlayerRankList;
     this.RankDropBox.Location              = DPIScalingHelper.GetScaledPoint(150, 25);
     this.RankDropBox.Name                  = "RankDropBox";
     this.RankDropBox.SelectedIndex         = -1;
     this.RankDropBox.SelectedValueChanged += PlayerRankChanged;
     this.RankDropBox.Size                  = DPIScalingHelper.GetScaledSize(150, 24);
     this.RankDropBox.TabIndex              = 0;
     //
     // PerkPointsLabel2
     //
     this.PerkPointsLabel2.Caption = "Perk Points:";
     this.PerkPointsLabel2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "PerkPoints", true));
     this.PerkPointsLabel2.Location    = DPIScalingHelper.GetScaledPoint(150, 50);
     this.PerkPointsLabel2.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.PerkPointsLabel2.Name        = "PerkPointsLabel2";
     this.PerkPointsLabel2.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.PerkPointsLabel2.TabIndex    = 0;
     this.PerkPointsLabel2.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // RankPointsTextBox
     //
     this.RankPointsTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "RankPoints", true));
     this.RankPointsTextBox.Location    = DPIScalingHelper.GetScaledPoint(150, 75);
     this.RankPointsTextBox.MaximumSize = DPIScalingHelper.GetScaledSize(500, 22);
     this.RankPointsTextBox.Name        = "RankPointsTextBox";
     this.RankPointsTextBox.Size        = DPIScalingHelper.GetScaledSize(75, 24);
     this.RankPointsTextBox.TabIndex    = 0;
     this.RankPointsTextBox.Caption     = "Rank Points:";
     //
     // ModScoreTextBox
     //
     this.ModScoreTextBox.Caption = "Mod Score:";
     this.ModScoreTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "ModScore", true));
     this.ModScoreTextBox.Location    = DPIScalingHelper.GetScaledPoint(150, 100);
     this.ModScoreTextBox.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.ModScoreTextBox.Name        = "ModScoreTextBox";
     this.ModScoreTextBox.Size        = DPIScalingHelper.GetScaledSize(75, 24);
     this.ModScoreTextBox.TabIndex    = 0;
     //
     // GemsTextBox
     //
     this.GemsTextBox.Caption = "Gems:";
     this.GemsTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "Gems", true));
     this.GemsTextBox.Location    = DPIScalingHelper.GetScaledPoint(150, 125);
     this.GemsTextBox.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.GemsTextBox.Name        = "GemsTextBox";
     this.GemsTextBox.Size        = DPIScalingHelper.GetScaledSize(75, 24);
     this.GemsTextBox.TabIndex    = 0;
     //
     // CPTextBox
     //
     this.CPTextBox.Caption = "Challenge Points:";
     this.CPTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "ChallengePoints", true));
     this.CPTextBox.Location    = DPIScalingHelper.GetScaledPoint(150, 150);
     this.CPTextBox.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.CPTextBox.Name        = "CPTextBox";
     this.CPTextBox.Size        = DPIScalingHelper.GetScaledSize(75, 24);
     this.CPTextBox.TabIndex    = 0;
     //
     // NameLabel
     //
     this.NameLabel.Caption = "Name:";
     this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "Name", true));
     this.NameLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 0);
     this.NameLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.NameLabel.Name        = "NameLabel";
     this.NameLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.NameLabel.TabIndex    = 0;
     this.NameLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // RankLabel
     //
     this.RankLabel.Caption = "Rank:";
     this.RankLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "Rank", true));
     this.RankLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 25);
     this.RankLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.RankLabel.Name        = "RankLabel";
     this.RankLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.RankLabel.TabIndex    = 0;
     this.RankLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // PerkPointsLabel
     //
     this.PerkPointsLabel.Caption = "Perk Points:";
     this.PerkPointsLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "PerkPoints", true));
     this.PerkPointsLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 50);
     this.PerkPointsLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.PerkPointsLabel.Name        = "PerkPointsLabel";
     this.PerkPointsLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.PerkPointsLabel.TabIndex    = 0;
     this.PerkPointsLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // RankPointsLabel
     //
     this.RankPointsLabel.Caption = "Rank Points:";
     this.RankPointsLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "RankPoints", true));
     this.RankPointsLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 75);
     this.RankPointsLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.RankPointsLabel.Name        = "RankPointsLabel";
     this.RankPointsLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.RankPointsLabel.TabIndex    = 0;
     this.RankPointsLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // ModScoreLabel
     //
     this.ModScoreLabel.Caption = "Mod Score:";
     this.ModScoreLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "ModScore", true));
     this.ModScoreLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 100);
     this.ModScoreLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.ModScoreLabel.Name        = "ModScoreLabel";
     this.ModScoreLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.ModScoreLabel.TabIndex    = 0;
     this.ModScoreLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // GemsLabel
     //
     this.GemsLabel.Caption = "Gems:";
     this.GemsLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "Gems", true));
     this.GemsLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 125);
     this.GemsLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.GemsLabel.Name        = "GemsLabel";
     this.GemsLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.GemsLabel.TabIndex    = 0;
     this.GemsLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // CPLabel
     //
     this.CPLabel.Caption = "Challenge Points:";
     this.CPLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "ChallengePoints", true));
     this.CPLabel.Location    = DPIScalingHelper.GetScaledPoint(150, 150);
     this.CPLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 24);
     this.CPLabel.Name        = "CPLabel";
     this.CPLabel.Size        = DPIScalingHelper.GetScaledSize(300, 24);
     this.CPLabel.TabIndex    = 0;
     this.CPLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // EditPanel
     //
     this.EditPanel.Controls.Add(this.NameTextBox);
     this.EditPanel.Controls.Add(this.RankDropBox);
     this.EditPanel.Controls.Add(this.PerkPointsLabel);
     this.EditPanel.Controls.Add(this.RankPointsTextBox);
     this.EditPanel.Controls.Add(this.ModScoreTextBox);
     this.EditPanel.Controls.Add(this.GemsTextBox);
     this.EditPanel.Controls.Add(this.CPTextBox);
     this.EditPanel.Location = DPIScalingHelper.GetScaledPoint(0, 40);
     this.EditPanel.Name     = "EditPanel";
     this.EditPanel.Size     = DPIScalingHelper.GetScaledSize(400, 400);
     this.EditPanel.TabIndex = 1;
     this.EditPanel.Visible  = false;
     //
     // ReadonlyPanel
     //
     this.ReadonlyPanel.Controls.Add(this.NameLabel);
     this.ReadonlyPanel.Controls.Add(this.RankLabel);
     this.ReadonlyPanel.Controls.Add(this.PerkPointsLabel2);
     this.ReadonlyPanel.Controls.Add(this.RankPointsLabel);
     this.ReadonlyPanel.Controls.Add(this.ModScoreLabel);
     this.ReadonlyPanel.Controls.Add(this.GemsLabel);
     this.ReadonlyPanel.Controls.Add(this.CPLabel);
     this.ReadonlyPanel.Location = DPIScalingHelper.GetScaledPoint(0, 40);
     this.ReadonlyPanel.Name     = "ReadonlyPanel";
     this.ReadonlyPanel.Size     = DPIScalingHelper.GetScaledSize(400, 400);
     this.ReadonlyPanel.TabIndex = 2;
     //
     // SaveEditButton
     //
     this.SaveEditButton.Location = DPIScalingHelper.GetScaledPoint(275, 12);
     this.SaveEditButton.Name     = "SaveEditButton";
     this.SaveEditButton.Size     = DPIScalingHelper.GetScaledSize(75, 23);
     this.SaveEditButton.TabIndex = 0;
     this.SaveEditButton.Text     = "Edit";
     this.SaveEditButton.Click   += new System.EventHandler(this.SaveEditButton_Click);
     //
     // AchievementsButton
     //
     this.AchievementsButton.Location = DPIScalingHelper.GetScaledPoint(250, 215);
     this.AchievementsButton.Name     = "AchievementsButton";
     this.AchievementsButton.Size     = DPIScalingHelper.GetScaledSize(100, 23);
     this.AchievementsButton.TabIndex = 0;
     this.AchievementsButton.Text     = "Achievements";
     this.AchievementsButton.Click   += AchievementsButton_Click;
     //
     // ModsButton
     //
     this.ModsButton.Location = DPIScalingHelper.GetScaledPoint(250, 140);
     this.ModsButton.Name     = "ModsButton";
     this.ModsButton.Size     = DPIScalingHelper.GetScaledSize(100, 23);
     this.ModsButton.TabIndex = 0;
     this.ModsButton.Text     = "Mods";
     this.ModsButton.Click   += ModsButton_Click;
     //
     // AchievementsLabel
     //
     this.AchievementsLabel.Caption = "Achievements";
     this.AchievementsLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BindingSource, "AchievementCount", true));
     this.AchievementsLabel.Location = DPIScalingHelper.GetScaledPoint(150, 215);
     this.AchievementsLabel.Name     = "AchievementsLabel";
     this.AchievementsLabel.Size     = DPIScalingHelper.GetScaledSize(100, 23);
     this.AchievementsLabel.TabIndex = 0;
     //
     // ProfileControl
     //
     this.Controls.Add(this.SaveEditButton);
     this.Controls.Add(this.EditPanel);
     this.Controls.Add(this.ReadonlyPanel);
     this.Controls.Add(this.ProfileTitleLabel);
     this.Controls.Add(this.AchievementsButton);
     this.Controls.Add(this.AchievementsLabel);
     this.Controls.Add(this.ModsButton);
     this.Controls.SetChildIndex(this.AchievementsButton, 0);
     this.Controls.SetChildIndex(this.AchievementsLabel, 0);
     this.Controls.SetChildIndex(this.ModsButton, 0);
     this.Name = "ProfileControl";
     this.Size = DPIScalingHelper.GetScaledSize(400, 400);
     ((System.ComponentModel.ISupportInitialize)(this.BindingSource)).EndInit();
     this.EditPanel.ResumeLayout(false);
     this.ReadonlyPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }