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.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoScaleDimensions = DPIScalingHelper.AutoSizeDimensions;
     this.CheckBox            = new VCheckBox();
     //
     // this.CaptionLabel
     //
     this.CaptionLabel.Location = new System.Drawing.Point(0, 0);
     //
     // CheckBox
     //
     this.CheckBox.AutoSize = false;
     this.CheckBox.DataBindings.Add("CheckState", this, "Checked", true, DataSourceUpdateMode.OnPropertyChanged, CheckState.Indeterminate);
     this.CheckBox.Location = new System.Drawing.Point(0, 0);
     this.CheckBox.Size     = DPIScalingHelper.GetScaledSize(20, 20);
     //
     // CoreControl
     //
     this.CoreControl.Size = DPIScalingHelper.GetScaledSize(21, 21);
     this.CoreControl.Controls.Add(CheckBox);
     //
     // VCheckBox
     //
     this.DataBindings.DefaultDataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged;
     this.Size = DPIScalingHelper.GetScaledSize(21, 21);
 }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.CaptionLabel = new Label();
            this.CoreControl  = new Panel();
            components        = new System.ComponentModel.Container();
            //
            // CaptionLabel
            //
            this.CaptionLabel.AutoSize  = true;
            this.CaptionLabel.Location  = DPIScalingHelper.GetScaledPoint(0, 3);
            this.CaptionLabel.Name      = "CaptionLabel";
            this.CaptionLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
            this.CaptionLabel.Visible   = false;
#if DEBUG
            this.CaptionLabel.ForeColor = Color.White;
            this.CaptionLabel.BackColor = Color.Navy;
#endif
            //
            // CoreControl
            //
            this.CoreControl.Location     = DPIScalingHelper.GetScaledPoint(0, 0);
            this.CoreControl.Name         = "CoreControl";
            this.CoreControl.SizeChanged += CoreControl_SizeChanged;
            this.CoreControl.Size         = DPIScalingHelper.GetScaledSize(100, 29);
            //
            // VUserControl
            //
            this.Controls.Add(CaptionLabel);
            this.Controls.Add(CoreControl);
            this.MaximumSize         = DPIScalingHelper.GetScaledSize(500, 100);
            this.AutoScaleDimensions = DPIScalingHelper.AutoSizeDimensions;
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.SuspendLayout();
     //
     // SingleSoulControl
     //
     this.DataBindings.DefaultDataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged;
     this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.Name      = "SingleSoulControl";
     this.Click    += OnClick;
     this.Size      = DPIScalingHelper.GetScaledSize(100, 70);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.SuspendLayout();
     this.playerModsControl = new PlayerModsControl();
     //
     // playerModsControl
     //
     this.playerModsControl.Location   = DPIScalingHelper.GetScaledPoint(0, 0);
     this.playerModsControl.Name       = "PlayerMods";
     this.playerModsControl.PlayerMods = PlayerMods;
     //
     // PlayerModsForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.playerModsControl);
     this.Name = "PlayerModsForm";
     this.Size = new System.Drawing.Size(300, 525);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 void InitializeComponent()
 {
     this.SoulCollectionControl = new SoulCollectionControl();
     this.SuspendLayout();
     //
     // SoulCollectionControl
     //
     this.SoulCollectionControl.Location = DPIScalingHelper.GetScaledPoint(0, 5);
     this.SoulCollectionControl.Name     = "SoulCollectionControl";
     //
     // SoulCollectionForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(SoulCollectionControl);
     this.ClientSize = DPIScalingHelper.GetScaledSize(585, 362);
     this.Name       = "SoulCollectionForm";
     this.Text       = "Soul Collection";
     this.ResumeLayout(false);
 }
Exemplo n.º 6
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.ComboBox = new ComboBox();
     //
     // ComboBox
     //
     this.ComboBox.DataBindings.Add("SelectedIndex", this, "SelectedIndex", true, DataSourceUpdateMode.OnPropertyChanged);
     this.ComboBox.Format               += new System.Windows.Forms.ListControlConvertEventHandler(this.ComboBox_Format);
     this.ComboBox.FormattingEnabled     = true;
     this.ComboBox.Location              = DPIScalingHelper.GetScaledPoint(0, 1);
     this.ComboBox.SelectedValueChanged += ComboBox_SelectedValueChanged;
     //
     // DropBox
     //
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.AutoScaleDimensions = DPIScalingHelper.AutoSizeDimensions;
     this.MaximumSize         = DPIScalingHelper.GetScaledSize(200, 30);
     this.CoreControl.Controls.Add(ComboBox);
     this.DataBindings.DefaultDataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged;
 }
Exemplo n.º 7
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.Label = new System.Windows.Forms.Label();
            this.CoreControl.SuspendLayout();
            this.SuspendLayout();
            //
            // CoreControl
            //
            this.CoreControl.Controls.Add(this.Label);
            //
            // Label
            //
#if DEBUG
            this.Label.BackColor = System.Drawing.Color.Navy;
            this.Label.ForeColor = System.Drawing.Color.White;
#endif
            this.Label.AutoSize = true;
            this.Label.DataBindings.Add(new System.Windows.Forms.Binding("Text", this, "Text", true));
            this.Label.Location  = DPIScalingHelper.GetScaledPoint(0, 2);
            this.Label.Margin    = new System.Windows.Forms.Padding(5, 0, 5, 0);
            this.Label.Name      = "Label";
            this.Label.Size      = DPIScalingHelper.GetScaledSize(0, 20);
            this.Label.TabIndex  = 0;
            this.Label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // VLabel
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.Name   = "VLabel";
            this.Height = DPIScalingHelper.GetScaledY(22);
            this.CoreControl.ResumeLayout(false);
            this.CoreControl.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.ListBox      = new System.Windows.Forms.ListBox();
     this.Label        = new VLabel();
     this.DeleteButton = new VUserInterface.CommonControls.VButton();
     this.NewButton    = new VUserInterface.CommonControls.VButton();
     this.OpenButton   = new VUserInterface.CommonControls.VButton();
     //
     // ListBox
     //
     this.ListBox.DataSource        = this.Collection;
     this.ListBox.FormattingEnabled = true;
     this.ListBox.ItemHeight        = 15;
     this.ListBox.Location          = DPIScalingHelper.GetScaledPoint(2, 27);
     this.ListBox.Name                  = "ListBox";
     this.ListBox.Size                  = DPIScalingHelper.GetScaledSize(325, 94);
     this.ListBox.TabIndex              = 0;
     this.ListBox.SelectedValueChanged += SelectedIndex_Changed;;
     //
     // Label
     //
     this.Label.AutoSize    = true;
     this.Label.Location    = DPIScalingHelper.GetScaledPoint(4, 1);
     this.Label.Name        = "Label";
     this.Label.MaximumSize = DPIScalingHelper.GetScaledSize(325, 25);
     this.Label.TabIndex    = 1;
     //
     // NewButton
     //
     this.NewButton.Click   += New_Click;
     this.NewButton.Location = DPIScalingHelper.GetScaledPoint(1, 131);
     this.NewButton.Name     = "NewButton";
     this.NewButton.Size     = DPIScalingHelper.GetScaledSize(100, 23);
     this.NewButton.TabIndex = 2;
     this.NewButton.Text     = "New";
     this.NewButton.UseVisualStyleBackColor = true;
     //
     // OpenButton
     //
     this.OpenButton.Click   += Open_Click;
     this.OpenButton.Location = DPIScalingHelper.GetScaledPoint(110, 131);
     this.OpenButton.Name     = "OpenButton";
     this.OpenButton.Size     = DPIScalingHelper.GetScaledSize(100, 23);
     this.OpenButton.TabIndex = 2;
     this.OpenButton.Text     = "Open";
     this.OpenButton.UseVisualStyleBackColor = true;
     //
     // DeleteButton
     //
     this.DeleteButton.Click   += Delete_Click;
     this.DeleteButton.Location = DPIScalingHelper.GetScaledPoint(221, 131);
     this.DeleteButton.Name     = "DeleteButton";
     this.DeleteButton.Size     = DPIScalingHelper.GetScaledSize(100, 23);
     this.DeleteButton.TabIndex = 2;
     this.DeleteButton.Text     = "Delete";
     this.DeleteButton.UseVisualStyleBackColor = true;
     //
     // VLoadList
     //
     this.ClientSize = DPIScalingHelper.GetScaledSize(280, 160);
     this.Controls.Add(this.DeleteButton);
     this.Controls.Add(this.OpenButton);
     this.Controls.Add(this.NewButton);
     this.Controls.Add(this.Label);
     this.Controls.Add(this.ListBox);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 9
0
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.DecrementButton = new VUserInterface.CommonControls.VButton();
			this.IncrementButton = new VUserInterface.CommonControls.VButton();
			this.IncrementDecrementToolTip = new ToolTip();
			this.ValueLabel = new VUserInterface.CommonControls.VLabel();
			this.SuspendLayout();
			// 
			// DecrementButton
			// 
			this.DecrementButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.DecrementButton.Location = DPIScalingHelper.GetScaledPoint(0, 0);
			this.DecrementButton.Name = "DecrementButton";
			this.DecrementButton.Size = DPIScalingHelper.GetScaledSize(27, 27);
			this.DecrementButton.TabIndex = 1;
			this.DecrementButton.Text = "-";
			this.DecrementButton.Click += new System.EventHandler(this.DecrementButton_Click);
			this.DecrementButton.MouseHover += DecrementButton_MouseHover;
			// 
			// IncrementButton
			// 
			this.IncrementButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.IncrementButton.Location = DPIScalingHelper.GetScaledPoint(80, 0);
			this.IncrementButton.Name = "IncrementButton";
			this.IncrementButton.Size = DPIScalingHelper.GetScaledSize(27, 27);
			this.IncrementButton.TabIndex = 2;
			this.IncrementButton.Text = "+";
			this.IncrementButton.Click += new System.EventHandler(this.IncrementButton_Click);
			this.IncrementButton.MouseHover += IncrementButton_MouseHover;
			// 
			// ValueLabel
			// 
			this.ValueLabel.Caption = null;
			this.ValueLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this, "Value", true));
			this.ValueLabel.Location = DPIScalingHelper.GetScaledPoint(32, 0);
			this.ValueLabel.MaximumSize = DPIScalingHelper.GetScaledSize(500, 29);
			this.ValueLabel.Name = "ValueLabel";
			this.ValueLabel.Size = DPIScalingHelper.GetScaledSize(43, 23);
			this.ValueLabel.TabIndex = 0;
			this.ValueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			//
			// CaptionLabel
			//
			this.CaptionLabel.Top = 5;
			//
			// CoreControl
			//
			this.CoreControl.Controls.Add(this.DecrementButton);
			this.CoreControl.Controls.Add(this.IncrementButton);
			this.CoreControl.Controls.Add(this.ValueLabel);
			this.CoreControl.Height = 28;
			// 
			// VIncrementor
			// 
			this.AutoScaleDimensions = DPIScalingHelper.AutoSizeDimensions;
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.DataBindings.DefaultDataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged;
			this.Name = "VIncrementor";
			this.Size = DPIScalingHelper.GetScaledSize(109, 28);
			this.ResumeLayout(false);
			this.PerformLayout();

		}