コード例 #1
0
ファイル: Form1.cs プロジェクト: pezs89/Brickbreaker_Old
        /// <summary>
        /// Handles the Click event of the beállításokToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void beállításokToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Set the window size.
            Felbontas F = new Felbontas();

            if (F.ShowDialog() == DialogResult.OK)
            {
                if (valtozhat == true)
                {
                    switch (F.meret)
                    {
                    case 1:
                        this.ClientSize = new System.Drawing.Size(370, 388);
                        break;

                    case 2:
                        this.ClientSize = new System.Drawing.Size(432, 453);
                        break;

                    case 3:
                        this.ClientSize = new System.Drawing.Size(518, 543);
                        break;
                    }
                }
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: pezs89/Brickbreaker_Old
        /// <summary>
        /// Handles the Click event of the beállításokToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void beállításokToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Set the window size.
            Felbontas F = new Felbontas();

            if (F.ShowDialog() == DialogResult.OK)
            {
                if (valtozhat == true)
                {
                    switch (F.meret)
                    {
                        case 1:
                            this.ClientSize = new System.Drawing.Size(370, 388);
                            break;
                        case 2:
                            this.ClientSize = new System.Drawing.Size(432, 453);
                            break;
                        case 3:
                            this.ClientSize = new System.Drawing.Size(518, 543);
                            break;
                    }
                }
            }
        }