Esempio n. 1
0
        /// <summary>
        /// Игровое поле создаётся соответствующими органами по внутренней инструкции и штатному расписанию.
        /// Но, в общем, этот путь проходит здесь.
        /// </summary>
        /// <param name="pool">Контрол, к которому будет подвязано игровое поле.</param>
        internal CellTable(CellPoolControl pool)
        {
            if (pool == null) throw new ArgumentNullException("pool");

            m_Pool = pool;
            m_Pool.SizeChanged += m_Pool_SizeChanged;

            Relocate(4, 4);
        }
Esempio n. 2
0
        /// <summary>
        /// Игровое поле создаётся соответствующими органами по внутренней инструкции и штатному расписанию.
        /// Но, в общем, этот путь проходит здесь.
        /// </summary>
        /// <param name="pool">Контрол, к которому будет подвязано игровое поле.</param>
        internal CellTable(CellPoolControl pool)
        {
            if (pool == null)
            {
                throw new ArgumentNullException("pool");
            }

            m_Pool              = pool;
            m_Pool.SizeChanged += m_Pool_SizeChanged;

            Relocate(4, 4);
        }
Esempio n. 3
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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlayForm));
     this.helpPlayTimer = new System.Windows.Forms.Timer(this.components);
     this.gamePool      = new Games.x15.CellPoolControl();
     this.SuspendLayout();
     //
     // helpPlayTimer
     //
     this.helpPlayTimer.Interval = 1200;
     this.helpPlayTimer.Tick    += new System.EventHandler(this.helpPlayTimer_Tick);
     //
     // gamePool
     //
     this.gamePool.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                   | System.Windows.Forms.AnchorStyles.Left)
                                                                  | System.Windows.Forms.AnchorStyles.Right)));
     this.gamePool.BackColor     = System.Drawing.Color.MidnightBlue;
     this.gamePool.CellBackColor = System.Drawing.Color.Tan;
     this.gamePool.Font          = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.gamePool.ForeColor     = System.Drawing.Color.White;
     this.gamePool.Location      = new System.Drawing.Point(16, 16);
     this.gamePool.Name          = "gamePool";
     this.gamePool.Size          = new System.Drawing.Size(376, 380);
     this.gamePool.TabIndex      = 2;
     this.gamePool.CellClick    += new Games.x15.CellClickEventHandler(this.gamePool_CellClick);
     this.gamePool.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.PlayForm_KeyDown);
     //
     // PlayForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(412, 418);
     this.Controls.Add(this.gamePool);
     this.Font            = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.ForeColor       = System.Drawing.SystemColors.ControlText;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.KeyPreview      = true;
     this.MaximizeBox     = false;
     this.Name            = "PlayForm";
     this.SizeGripStyle   = System.Windows.Forms.SizeGripStyle.Show;
     this.Text            = "Осьмушки";
     this.TransparencyKey = System.Drawing.Color.MidnightBlue;
     this.Load           += new System.EventHandler(this.PlayForm_Load);
     this.ResumeLayout(false);
 }
Esempio n. 4
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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlayForm));
     this.helpPlayTimer = new System.Windows.Forms.Timer(this.components);
     this.gamePool = new Games.x15.CellPoolControl();
     this.SuspendLayout();
     //
     // helpPlayTimer
     //
     this.helpPlayTimer.Interval = 1200;
     this.helpPlayTimer.Tick += new System.EventHandler(this.helpPlayTimer_Tick);
     //
     // gamePool
     //
     this.gamePool.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.gamePool.BackColor = System.Drawing.Color.MidnightBlue;
     this.gamePool.CellBackColor = System.Drawing.Color.Tan;
     this.gamePool.Font = new System.Drawing.Font("Verdana", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.gamePool.ForeColor = System.Drawing.Color.White;
     this.gamePool.Location = new System.Drawing.Point(16, 16);
     this.gamePool.Name = "gamePool";
     this.gamePool.Size = new System.Drawing.Size(376, 380);
     this.gamePool.TabIndex = 2;
     this.gamePool.CellClick += new Games.x15.CellClickEventHandler(this.gamePool_CellClick);
     this.gamePool.KeyDown += new System.Windows.Forms.KeyEventHandler(this.PlayForm_KeyDown);
     //
     // PlayForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize = new System.Drawing.Size(412, 418);
     this.Controls.Add(this.gamePool);
     this.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.ForeColor = System.Drawing.SystemColors.ControlText;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.KeyPreview = true;
     this.MaximizeBox = false;
     this.Name = "PlayForm";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     this.Text = "Осьмушки";
     this.TransparencyKey = System.Drawing.Color.MidnightBlue;
     this.Load += new System.EventHandler(this.PlayForm_Load);
     this.ResumeLayout(false);
 }