Пример #1
0
        /// <summary>
        /// Construct the dialog box
        /// </summary>
        /// <param name="model"></param>
        public DeckMatcherForm(PresenterModel model)
        {
            this.m_Model = model;

            // Setup the form UI
            this.SuspendLayout();

            this.ClientSize      = new Size(400, 500);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "DeckMatcherForm";
            this.Text            = "Deck Matcher";

            // Add the controls
            this.Controls.Add(new DeckMatcherDoneButton(new Point(313, 470), 0));
            this.m_UnmatchedControls = new UnmatchedGroupBox(this, new Point(10, 10), new Size(380, 260), 1);
            this.Controls.Add(this.m_UnmatchedControls);
            this.m_MatchedControls = new MatchedGroupBox(this, new Point(10, 280), new Size(380, 180), 2);
            this.Controls.Add(this.m_MatchedControls);

            this.ResumeLayout();

            // Populate the form...
            this.RefreshLists();
        }
Пример #2
0
        /// <summary>
        /// Construct the dialog box
        /// </summary>
        /// <param name="model"></param>
        public DeckMatcherForm( PresenterModel model )
        {
            this.m_Model = model;

            // Setup the form UI
            this.SuspendLayout();

            this.ClientSize = new Size( 400, 500 );
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "DeckMatcherForm";
            this.Text = "Deck Matcher";

            // Add the controls
            this.Controls.Add( new DeckMatcherDoneButton( new Point(313, 470), 0 ) );
            this.m_UnmatchedControls = new UnmatchedGroupBox( this, new Point(10, 10), new Size(380,260), 1 );
            this.Controls.Add( this.m_UnmatchedControls );
            this.m_MatchedControls = new MatchedGroupBox( this, new Point(10, 280), new Size(380,180), 2 );
            this.Controls.Add( this.m_MatchedControls );

            this.ResumeLayout();

            // Populate the form...
            this.RefreshLists();
        }
Пример #3
0
 /// <summary>
 /// Constructs the unmatch button
 /// </summary>
 /// <param name="location">The location of the button</param>
 /// <param name="size">The size of the button</param>
 /// <param name="tabIndex">The tab index of the button</param>
 public UnmatchButton(MatchedGroupBox owner, Point location, Size size, int tabIndex)
 {
     this.m_Owner = owner;
     // Set the button properties
     this.Location = location;
     this.Size     = size;
     this.Name     = "UnmatchButton";
     this.TabIndex = tabIndex;
     this.Text     = "Unmatch";
 }
Пример #4
0
 /// <summary>
 /// Constructs the unmatch button
 /// </summary>
 /// <param name="location">The location of the button</param>
 /// <param name="size">The size of the button</param>
 /// <param name="tabIndex">The tab index of the button</param>
 public UnmatchButton( MatchedGroupBox owner, Point location, Size size, int tabIndex )
 {
     this.m_Owner = owner;
     // Set the button properties
     this.Location = location;
     this.Size = size;
     this.Name = "UnmatchButton";
     this.TabIndex = tabIndex;
     this.Text = "Unmatch";
 }