458 lines
18 KiB
C#
458 lines
18 KiB
C#
namespace qtc_net_client_2
|
|
{
|
|
partial class TicTacToeGame
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
pBoard = new Panel();
|
|
btnSquare9 = new Button();
|
|
btnSquare1 = new Button();
|
|
btnSquare7 = new Button();
|
|
btnSquare8 = new Button();
|
|
btnSquare6 = new Button();
|
|
btnSquare4 = new Button();
|
|
btnSquare5 = new Button();
|
|
btnSquare3 = new Button();
|
|
btnSquare2 = new Button();
|
|
pbBoard = new PictureBox();
|
|
pSymbolSelection = new Panel();
|
|
btnOSelect = new Button();
|
|
btnXSelect = new Button();
|
|
label1 = new Label();
|
|
pLoading = new Panel();
|
|
btnPlayAgain = new Button();
|
|
lblPlayAgain = new Label();
|
|
lblLoadStatus = new Label();
|
|
lblPlayerOne = new Label();
|
|
lblP1Username = new Label();
|
|
lblP2Username = new Label();
|
|
lblPlayerTwo = new Label();
|
|
lvUserlist = new ListView();
|
|
rtxtChatbox = new RichTextBox();
|
|
btnSend = new Button();
|
|
rtxtChat = new RichTextBox();
|
|
lblJackpotWon = new Label();
|
|
pBoard.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pbBoard).BeginInit();
|
|
pSymbolSelection.SuspendLayout();
|
|
pLoading.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// pBoard
|
|
//
|
|
pBoard.Controls.Add(btnSquare9);
|
|
pBoard.Controls.Add(btnSquare1);
|
|
pBoard.Controls.Add(btnSquare7);
|
|
pBoard.Controls.Add(btnSquare8);
|
|
pBoard.Controls.Add(btnSquare6);
|
|
pBoard.Controls.Add(btnSquare4);
|
|
pBoard.Controls.Add(btnSquare5);
|
|
pBoard.Controls.Add(btnSquare3);
|
|
pBoard.Controls.Add(btnSquare2);
|
|
pBoard.Controls.Add(pbBoard);
|
|
pBoard.Enabled = false;
|
|
pBoard.Location = new Point(30, 18);
|
|
pBoard.Name = "pBoard";
|
|
pBoard.Size = new Size(541, 474);
|
|
pBoard.TabIndex = 0;
|
|
//
|
|
// btnSquare9
|
|
//
|
|
btnSquare9.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare9.FlatAppearance.BorderSize = 0;
|
|
btnSquare9.FlatStyle = FlatStyle.Flat;
|
|
btnSquare9.Location = new Point(374, 341);
|
|
btnSquare9.Name = "btnSquare9";
|
|
btnSquare9.Size = new Size(99, 90);
|
|
btnSquare9.TabIndex = 11;
|
|
btnSquare9.UseVisualStyleBackColor = true;
|
|
btnSquare9.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare1
|
|
//
|
|
btnSquare1.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare1.FlatAppearance.BorderSize = 0;
|
|
btnSquare1.FlatStyle = FlatStyle.Flat;
|
|
btnSquare1.Location = new Point(79, 49);
|
|
btnSquare1.Name = "btnSquare1";
|
|
btnSquare1.Size = new Size(99, 90);
|
|
btnSquare1.TabIndex = 4;
|
|
btnSquare1.UseVisualStyleBackColor = true;
|
|
btnSquare1.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare7
|
|
//
|
|
btnSquare7.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare7.FlatAppearance.BorderSize = 0;
|
|
btnSquare7.FlatStyle = FlatStyle.Flat;
|
|
btnSquare7.Location = new Point(79, 341);
|
|
btnSquare7.Name = "btnSquare7";
|
|
btnSquare7.Size = new Size(99, 90);
|
|
btnSquare7.TabIndex = 10;
|
|
btnSquare7.UseVisualStyleBackColor = true;
|
|
btnSquare7.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare8
|
|
//
|
|
btnSquare8.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare8.FlatAppearance.BorderSize = 0;
|
|
btnSquare8.FlatStyle = FlatStyle.Flat;
|
|
btnSquare8.Location = new Point(229, 341);
|
|
btnSquare8.Name = "btnSquare8";
|
|
btnSquare8.Size = new Size(99, 90);
|
|
btnSquare8.TabIndex = 9;
|
|
btnSquare8.UseVisualStyleBackColor = true;
|
|
btnSquare8.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare6
|
|
//
|
|
btnSquare6.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare6.FlatAppearance.BorderSize = 0;
|
|
btnSquare6.FlatStyle = FlatStyle.Flat;
|
|
btnSquare6.Location = new Point(374, 195);
|
|
btnSquare6.Name = "btnSquare6";
|
|
btnSquare6.Size = new Size(99, 90);
|
|
btnSquare6.TabIndex = 8;
|
|
btnSquare6.UseVisualStyleBackColor = true;
|
|
btnSquare6.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare4
|
|
//
|
|
btnSquare4.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare4.FlatAppearance.BorderSize = 0;
|
|
btnSquare4.FlatStyle = FlatStyle.Flat;
|
|
btnSquare4.Location = new Point(79, 195);
|
|
btnSquare4.Name = "btnSquare4";
|
|
btnSquare4.Size = new Size(99, 90);
|
|
btnSquare4.TabIndex = 7;
|
|
btnSquare4.UseVisualStyleBackColor = true;
|
|
btnSquare4.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare5
|
|
//
|
|
btnSquare5.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare5.FlatAppearance.BorderSize = 0;
|
|
btnSquare5.FlatStyle = FlatStyle.Flat;
|
|
btnSquare5.Location = new Point(229, 195);
|
|
btnSquare5.Name = "btnSquare5";
|
|
btnSquare5.Size = new Size(99, 90);
|
|
btnSquare5.TabIndex = 6;
|
|
btnSquare5.UseVisualStyleBackColor = true;
|
|
btnSquare5.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare3
|
|
//
|
|
btnSquare3.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare3.FlatAppearance.BorderSize = 0;
|
|
btnSquare3.FlatStyle = FlatStyle.Flat;
|
|
btnSquare3.Location = new Point(374, 49);
|
|
btnSquare3.Name = "btnSquare3";
|
|
btnSquare3.Size = new Size(99, 90);
|
|
btnSquare3.TabIndex = 5;
|
|
btnSquare3.UseVisualStyleBackColor = true;
|
|
btnSquare3.Click += btnSquareX_Click;
|
|
//
|
|
// btnSquare2
|
|
//
|
|
btnSquare2.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnSquare2.FlatAppearance.BorderSize = 0;
|
|
btnSquare2.FlatStyle = FlatStyle.Flat;
|
|
btnSquare2.Location = new Point(229, 49);
|
|
btnSquare2.Name = "btnSquare2";
|
|
btnSquare2.Size = new Size(99, 90);
|
|
btnSquare2.TabIndex = 3;
|
|
btnSquare2.UseVisualStyleBackColor = true;
|
|
btnSquare2.Click += btnSquareX_Click;
|
|
//
|
|
// pbBoard
|
|
//
|
|
pbBoard.Image = Properties.Resources.Tic_tac_toe;
|
|
pbBoard.Location = new Point(27, 15);
|
|
pbBoard.Name = "pbBoard";
|
|
pbBoard.Size = new Size(501, 444);
|
|
pbBoard.SizeMode = PictureBoxSizeMode.Zoom;
|
|
pbBoard.TabIndex = 0;
|
|
pbBoard.TabStop = false;
|
|
//
|
|
// pSymbolSelection
|
|
//
|
|
pSymbolSelection.BorderStyle = BorderStyle.FixedSingle;
|
|
pSymbolSelection.Controls.Add(btnOSelect);
|
|
pSymbolSelection.Controls.Add(btnXSelect);
|
|
pSymbolSelection.Controls.Add(label1);
|
|
pSymbolSelection.Location = new Point(161, 109);
|
|
pSymbolSelection.Name = "pSymbolSelection";
|
|
pSymbolSelection.Size = new Size(275, 255);
|
|
pSymbolSelection.TabIndex = 3;
|
|
pSymbolSelection.Visible = false;
|
|
//
|
|
// btnOSelect
|
|
//
|
|
btnOSelect.BackgroundImage = Properties.Resources.O;
|
|
btnOSelect.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnOSelect.FlatAppearance.BorderSize = 0;
|
|
btnOSelect.FlatStyle = FlatStyle.Flat;
|
|
btnOSelect.Location = new Point(157, 104);
|
|
btnOSelect.Name = "btnOSelect";
|
|
btnOSelect.Size = new Size(91, 89);
|
|
btnOSelect.TabIndex = 2;
|
|
btnOSelect.UseVisualStyleBackColor = true;
|
|
btnOSelect.Click += btnOSelect_Click;
|
|
//
|
|
// btnXSelect
|
|
//
|
|
btnXSelect.BackgroundImage = Properties.Resources.X;
|
|
btnXSelect.BackgroundImageLayout = ImageLayout.Stretch;
|
|
btnXSelect.FlatAppearance.BorderSize = 0;
|
|
btnXSelect.FlatStyle = FlatStyle.Flat;
|
|
btnXSelect.Location = new Point(34, 103);
|
|
btnXSelect.Name = "btnXSelect";
|
|
btnXSelect.Size = new Size(91, 89);
|
|
btnXSelect.TabIndex = 1;
|
|
btnXSelect.UseVisualStyleBackColor = true;
|
|
btnXSelect.Click += btnXSelect_Click;
|
|
//
|
|
// label1
|
|
//
|
|
label1.Font = new Font("Segoe UI", 15F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
label1.ForeColor = Color.White;
|
|
label1.Location = new Point(11, 14);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(250, 49);
|
|
label1.TabIndex = 0;
|
|
label1.Text = "Please Select Symbol";
|
|
label1.TextAlign = ContentAlignment.MiddleCenter;
|
|
//
|
|
// pLoading
|
|
//
|
|
pLoading.BorderStyle = BorderStyle.FixedSingle;
|
|
pLoading.Controls.Add(btnPlayAgain);
|
|
pLoading.Controls.Add(lblPlayAgain);
|
|
pLoading.Controls.Add(lblLoadStatus);
|
|
pLoading.Location = new Point(161, 109);
|
|
pLoading.Name = "pLoading";
|
|
pLoading.Size = new Size(275, 255);
|
|
pLoading.TabIndex = 2;
|
|
pLoading.Visible = false;
|
|
//
|
|
// btnPlayAgain
|
|
//
|
|
btnPlayAgain.Location = new Point(97, 223);
|
|
btnPlayAgain.Name = "btnPlayAgain";
|
|
btnPlayAgain.Size = new Size(75, 23);
|
|
btnPlayAgain.TabIndex = 2;
|
|
btnPlayAgain.Text = "Play Again";
|
|
btnPlayAgain.UseVisualStyleBackColor = true;
|
|
btnPlayAgain.Visible = false;
|
|
btnPlayAgain.Click += btnPlayAgain_Click;
|
|
//
|
|
// lblPlayAgain
|
|
//
|
|
lblPlayAgain.ForeColor = Color.White;
|
|
lblPlayAgain.Location = new Point(28, 134);
|
|
lblPlayAgain.Name = "lblPlayAgain";
|
|
lblPlayAgain.Size = new Size(218, 86);
|
|
lblPlayAgain.TabIndex = 1;
|
|
lblPlayAgain.Text = "If you wish to play with a different user, you can close\r\nthis window and match up again. Otherwise click\r\n\"Play Again\"";
|
|
lblPlayAgain.TextAlign = ContentAlignment.MiddleCenter;
|
|
lblPlayAgain.Visible = false;
|
|
//
|
|
// lblLoadStatus
|
|
//
|
|
lblLoadStatus.Font = new Font("Segoe UI", 21.75F, FontStyle.Bold, GraphicsUnit.Point, 0);
|
|
lblLoadStatus.ForeColor = Color.White;
|
|
lblLoadStatus.Location = new Point(11, 4);
|
|
lblLoadStatus.Name = "lblLoadStatus";
|
|
lblLoadStatus.Size = new Size(250, 130);
|
|
lblLoadStatus.TabIndex = 0;
|
|
lblLoadStatus.Text = "Text";
|
|
lblLoadStatus.TextAlign = ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblPlayerOne
|
|
//
|
|
lblPlayerOne.Font = new Font("Segoe UI", 12F, FontStyle.Bold | FontStyle.Italic);
|
|
lblPlayerOne.ForeColor = Color.White;
|
|
lblPlayerOne.Location = new Point(30, 501);
|
|
lblPlayerOne.Name = "lblPlayerOne";
|
|
lblPlayerOne.Size = new Size(29, 23);
|
|
lblPlayerOne.TabIndex = 2;
|
|
lblPlayerOne.Text = "P1";
|
|
//
|
|
// lblP1Username
|
|
//
|
|
lblP1Username.AutoSize = true;
|
|
lblP1Username.Font = new Font("Segoe UI", 15F, FontStyle.Bold | FontStyle.Italic);
|
|
lblP1Username.ForeColor = Color.White;
|
|
lblP1Username.Location = new Point(26, 519);
|
|
lblP1Username.Name = "lblP1Username";
|
|
lblP1Username.Size = new Size(105, 28);
|
|
lblP1Username.TabIndex = 3;
|
|
lblP1Username.Text = "Username";
|
|
//
|
|
// lblP2Username
|
|
//
|
|
lblP2Username.AutoSize = true;
|
|
lblP2Username.Font = new Font("Segoe UI", 15F, FontStyle.Bold | FontStyle.Italic);
|
|
lblP2Username.ForeColor = Color.White;
|
|
lblP2Username.Location = new Point(466, 519);
|
|
lblP2Username.Name = "lblP2Username";
|
|
lblP2Username.Size = new Size(105, 28);
|
|
lblP2Username.TabIndex = 5;
|
|
lblP2Username.Text = "Username";
|
|
lblP2Username.TextAlign = ContentAlignment.MiddleRight;
|
|
//
|
|
// lblPlayerTwo
|
|
//
|
|
lblPlayerTwo.Font = new Font("Segoe UI", 12F, FontStyle.Bold | FontStyle.Italic);
|
|
lblPlayerTwo.ForeColor = Color.White;
|
|
lblPlayerTwo.Location = new Point(540, 501);
|
|
lblPlayerTwo.Name = "lblPlayerTwo";
|
|
lblPlayerTwo.Size = new Size(29, 23);
|
|
lblPlayerTwo.TabIndex = 4;
|
|
lblPlayerTwo.Text = "P2";
|
|
//
|
|
// lvUserlist
|
|
//
|
|
lvUserlist.Alignment = ListViewAlignment.Left;
|
|
lvUserlist.Location = new Point(577, 48);
|
|
lvUserlist.MultiSelect = false;
|
|
lvUserlist.Name = "lvUserlist";
|
|
lvUserlist.Size = new Size(309, 211);
|
|
lvUserlist.TabIndex = 6;
|
|
lvUserlist.UseCompatibleStateImageBehavior = false;
|
|
lvUserlist.View = View.SmallIcon;
|
|
//
|
|
// rtxtChatbox
|
|
//
|
|
rtxtChatbox.Location = new Point(577, 497);
|
|
rtxtChatbox.Name = "rtxtChatbox";
|
|
rtxtChatbox.Size = new Size(230, 49);
|
|
rtxtChatbox.TabIndex = 8;
|
|
rtxtChatbox.Text = "";
|
|
rtxtChatbox.KeyDown += rtxtChatbox_KeyDown;
|
|
//
|
|
// btnSend
|
|
//
|
|
btnSend.BackgroundImage = Properties.Resources.SendIcon;
|
|
btnSend.BackgroundImageLayout = ImageLayout.Zoom;
|
|
btnSend.FlatAppearance.BorderSize = 0;
|
|
btnSend.FlatStyle = FlatStyle.Flat;
|
|
btnSend.Location = new Point(811, 497);
|
|
btnSend.Name = "btnSend";
|
|
btnSend.Size = new Size(75, 50);
|
|
btnSend.TabIndex = 9;
|
|
btnSend.UseVisualStyleBackColor = true;
|
|
btnSend.Click += btnSend_Click;
|
|
//
|
|
// rtxtChat
|
|
//
|
|
rtxtChat.Font = new Font("Segoe UI", 10F);
|
|
rtxtChat.HideSelection = false;
|
|
rtxtChat.Location = new Point(577, 265);
|
|
rtxtChat.Name = "rtxtChat";
|
|
rtxtChat.ReadOnly = true;
|
|
rtxtChat.Size = new Size(309, 227);
|
|
rtxtChat.TabIndex = 10;
|
|
rtxtChat.Text = "";
|
|
//
|
|
// lblJackpotWon
|
|
//
|
|
lblJackpotWon.AutoSize = true;
|
|
lblJackpotWon.Font = new Font("Segoe UI", 12F, FontStyle.Bold | FontStyle.Italic);
|
|
lblJackpotWon.ForeColor = Color.Blue;
|
|
lblJackpotWon.Location = new Point(744, 18);
|
|
lblJackpotWon.Name = "lblJackpotWon";
|
|
lblJackpotWon.Size = new Size(142, 21);
|
|
lblJackpotWon.TabIndex = 11;
|
|
lblJackpotWon.Text = "3 Wins = Jackpot!";
|
|
//
|
|
// TicTacToeGame
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.DodgerBlue;
|
|
ClientSize = new Size(898, 558);
|
|
Controls.Add(lblJackpotWon);
|
|
Controls.Add(rtxtChat);
|
|
Controls.Add(btnSend);
|
|
Controls.Add(rtxtChatbox);
|
|
Controls.Add(lvUserlist);
|
|
Controls.Add(lblP2Username);
|
|
Controls.Add(lblPlayerTwo);
|
|
Controls.Add(lblP1Username);
|
|
Controls.Add(lblPlayerOne);
|
|
Controls.Add(pLoading);
|
|
Controls.Add(pSymbolSelection);
|
|
Controls.Add(pBoard);
|
|
FormBorderStyle = FormBorderStyle.FixedDialog;
|
|
MaximizeBox = false;
|
|
Name = "TicTacToeGame";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "QtC.NET qGame - qTic-Tac-Toe";
|
|
FormClosed += TicTacToeGame_FormClosed;
|
|
Load += Main_Load;
|
|
pBoard.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)pbBoard).EndInit();
|
|
pSymbolSelection.ResumeLayout(false);
|
|
pLoading.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Panel pBoard;
|
|
private PictureBox pbBoard;
|
|
private Button btnSquare9;
|
|
private Button btnSquare7;
|
|
private Button btnSquare8;
|
|
private Button btnSquare6;
|
|
private Button btnSquare4;
|
|
private Button btnSquare5;
|
|
private Button btnSquare3;
|
|
private Button btnSquare1;
|
|
private Button btnSquare2;
|
|
private Panel pLoading;
|
|
private Label lblLoadStatus;
|
|
private Label lblPlayerOne;
|
|
private Label lblP1Username;
|
|
private Label lblP2Username;
|
|
private Label lblPlayerTwo;
|
|
private Panel pSymbolSelection;
|
|
private Button btnOSelect;
|
|
private Button btnXSelect;
|
|
private Label label1;
|
|
private ListView lvUserlist;
|
|
private RichTextBox rtxtChatbox;
|
|
private Button btnSend;
|
|
private Label lblPlayAgain;
|
|
private Button btnPlayAgain;
|
|
private RichTextBox rtxtChat;
|
|
private Label lblJackpotWon;
|
|
}
|
|
}
|