/// <summary> /// Constructs the group box /// </summary> /// <param name="location">The location of the group box</param> /// <param name="size">The size of the group box</param> /// <param name="tabIndex">The tab index of the group box</param> public UnmatchedGroupBox(DeckMatcherForm owner, Point location, Size size, int tabIndex) { this.m_Owner = owner; this.SuspendLayout(); // Set the group box properties this.Location = location; this.Size = size; this.TabIndex = tabIndex; this.Name = "UnmatchedGroupBox"; this.TabStop = false; this.Text = "Unmatched"; this.Enabled = true; // Add the controls this.Controls.Add(new MatchButton(this, new Point(10, this.ClientRectangle.Bottom - 45), new Size(this.ClientRectangle.Width - 20, 35), 0)); this.m_Local = new LocalListBox( new Point(10, 40), new Size((this.ClientRectangle.Width / 2) - 20, this.ClientRectangle.Height - 95), 1); this.Controls.Add(this.m_Local); this.m_Remote = new RemoteListBox( new Point(10 + (this.ClientRectangle.Width / 2), 40), new Size((this.ClientRectangle.Width / 2) - 20, this.ClientRectangle.Height - 95), 2); this.Controls.Add(this.m_Remote); this.Controls.Add(new LabelHelper(new Point(10, 25), new Size(75, 15), "Local")); this.Controls.Add(new LabelHelper(new Point(10 + (this.ClientRectangle.Width / 2), 25), new Size(75, 15), "Remote")); this.ResumeLayout(); }
/// <summary> /// Constructs the group box /// </summary> /// <param name="location">The location of the group box</param> /// <param name="size">The size of the group box</param> /// <param name="tabIndex">The tab index of the group box</param> public UnmatchedGroupBox( DeckMatcherForm owner, Point location, Size size, int tabIndex ) { this.m_Owner = owner; this.SuspendLayout(); // Set the group box properties this.Location = location; this.Size = size; this.TabIndex = tabIndex; this.Name = "UnmatchedGroupBox"; this.TabStop = false; this.Text = "Unmatched"; this.Enabled = true; // Add the controls this.Controls.Add( new MatchButton( this, new Point(10, this.ClientRectangle.Bottom - 45), new Size(this.ClientRectangle.Width-20, 35), 0 ) ); this.m_Local = new LocalListBox( new Point(10, 40), new Size((this.ClientRectangle.Width/2)-20, this.ClientRectangle.Height - 95), 1 ); this.Controls.Add( this.m_Local ); this.m_Remote = new RemoteListBox( new Point(10+(this.ClientRectangle.Width/2), 40), new Size((this.ClientRectangle.Width/2)-20, this.ClientRectangle.Height - 95), 2 ); this.Controls.Add( this.m_Remote ); this.Controls.Add( new LabelHelper( new Point(10,25), new Size(75,15), "Local") ); this.Controls.Add( new LabelHelper( new Point(10+(this.ClientRectangle.Width/2),25), new Size(75,15), "Remote") ); this.ResumeLayout(); }
/// <summary> /// Contructs the group and all its child controls /// </summary> /// <param name="location">The location of this group</param> /// <param name="size">The size of this group</param> /// <param name="tabIndex">The tab index of this group</param> public MatchedGroupBox( DeckMatcherForm owner, Point location, Size size, int tabIndex ) { this.m_Owner = owner; this.SuspendLayout(); // Set the GroupBox properties this.Location = location; this.Size = size; this.TabIndex = tabIndex; this.Name = "MatchedGroupBox"; this.TabStop = false; this.Text = "Matched"; this.Enabled = true; // Add the controls this.Controls.Add( new UnmatchButton( this, new Point(10, this.ClientRectangle.Bottom - 45), new Size(this.ClientRectangle.Width-20, 35), 0 ) ); this.m_MatchedListBox = new MatchedListBox( new Point(10, 20), new Size(this.ClientRectangle.Width-20, this.ClientRectangle.Height - 70), 0 ); this.Controls.Add( this.m_MatchedListBox ); this.ResumeLayout(); }
/// <summary> /// Contructs the group and all its child controls /// </summary> /// <param name="location">The location of this group</param> /// <param name="size">The size of this group</param> /// <param name="tabIndex">The tab index of this group</param> public MatchedGroupBox(DeckMatcherForm owner, Point location, Size size, int tabIndex) { this.m_Owner = owner; this.SuspendLayout(); // Set the GroupBox properties this.Location = location; this.Size = size; this.TabIndex = tabIndex; this.Name = "MatchedGroupBox"; this.TabStop = false; this.Text = "Matched"; this.Enabled = true; // Add the controls this.Controls.Add(new UnmatchButton(this, new Point(10, this.ClientRectangle.Bottom - 45), new Size(this.ClientRectangle.Width - 20, 35), 0)); this.m_MatchedListBox = new MatchedListBox( new Point(10, 20), new Size(this.ClientRectangle.Width - 20, this.ClientRectangle.Height - 70), 0); this.Controls.Add(this.m_MatchedListBox); this.ResumeLayout(); }