Example #1
0
 private void InitializeComponent()
 {
     this.nupPenWidth   = new DarkTheme.NumericUpDown();
     this.lblPenWidth   = new DarkTheme.Label();
     this.drawField     = new Scribble.DrawField();
     this.btnReset      = new DarkTheme.Button();
     this.colorPalette  = new DarkTheme.ColorPalette();
     this.txtMessage    = new DarkTheme.TextBox();
     this.btnFillDraw   = new DarkTheme.Button();
     this.chatControl   = new WinAdvancedNetworkLibSample.ChatControl();
     this.lvwPlayers    = new System.Windows.Forms.ListView();
     this.lblWord       = new DarkTheme.Label();
     this.lblRoundInfo  = new DarkTheme.Label();
     this.btnKickPlayer = new DarkTheme.Button();
     this.SuspendLayout();
     //
     // nupPenWidth
     //
     this.nupPenWidth.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.nupPenWidth.BackColor = System.Drawing.Color.White;
     this.nupPenWidth.Location  = new System.Drawing.Point(728, 509);
     this.nupPenWidth.Name      = "nupPenWidth";
     this.nupPenWidth.Size      = new System.Drawing.Size(100, 29);
     this.nupPenWidth.TabIndex  = 1;
     this.nupPenWidth.Text      = "numericUpDown1";
     this.nupPenWidth.Value     = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     //
     // lblPenWidth
     //
     this.lblPenWidth.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.lblPenWidth.AutoSize  = true;
     this.lblPenWidth.BackColor = System.Drawing.Color.Transparent;
     this.lblPenWidth.Font      = new System.Drawing.Font("Consolas", 12F);
     this.lblPenWidth.ForeColor = System.Drawing.Color.White;
     this.lblPenWidth.Location  = new System.Drawing.Point(724, 487);
     this.lblPenWidth.Name      = "lblPenWidth";
     this.lblPenWidth.Size      = new System.Drawing.Size(108, 19);
     this.lblPenWidth.TabIndex  = 2;
     this.lblPenWidth.Text      = "Stiftstärke";
     //
     // drawField
     //
     this.drawField.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.drawField.BackColor   = System.Drawing.Color.White;
     this.drawField.BorderColor = System.Drawing.Color.Empty;
     this.drawField.Location    = new System.Drawing.Point(234, 62);
     this.drawField.Name        = "drawField";
     this.drawField.PenColor    = System.Drawing.Color.Black;
     this.drawField.PenWidth    = 10F;
     this.drawField.Size        = new System.Drawing.Size(598, 400);
     this.drawField.TabIndex    = 3;
     this.drawField.Text        = "drawField";
     //
     // btnReset
     //
     this.btnReset.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnReset.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
     this.btnReset.FlatAppearance.BorderSize         = 0;
     this.btnReset.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.btnReset.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.btnReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnReset.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnReset.ForeColor = System.Drawing.Color.Black;
     this.btnReset.Location  = new System.Drawing.Point(234, 509);
     this.btnReset.Name      = "btnReset";
     this.btnReset.Size      = new System.Drawing.Size(128, 29);
     this.btnReset.TabIndex  = 4;
     this.btnReset.Text      = "Zurücksetzen";
     this.btnReset.UseVisualStyleBackColor = false;
     this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
     //
     // colorPalette
     //
     this.colorPalette.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.colorPalette.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
     this.colorPalette.Location  = new System.Drawing.Point(377, 509);
     this.colorPalette.Name      = "colorPalette";
     this.colorPalette.Size      = new System.Drawing.Size(300, 30);
     this.colorPalette.TabIndex  = 5;
     this.colorPalette.Text      = "colorPalette1";
     //
     // txtMessage
     //
     this.txtMessage.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.txtMessage.BackColor = System.Drawing.Color.White;
     this.txtMessage.Font      = new System.Drawing.Font("Segoe UI Emoji", 10F);
     this.txtMessage.Location  = new System.Drawing.Point(866, 509);
     this.txtMessage.Name      = "txtMessage";
     this.txtMessage.ReadOnly  = false;
     this.txtMessage.Size      = new System.Drawing.Size(200, 29);
     this.txtMessage.TabIndex  = 7;
     this.txtMessage.KeyDown  += new System.Windows.Forms.KeyEventHandler(this.txtMessage_KeyDown);
     //
     // btnFillDraw
     //
     this.btnFillDraw.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnFillDraw.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
     this.btnFillDraw.FlatAppearance.BorderSize         = 0;
     this.btnFillDraw.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.btnFillDraw.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.btnFillDraw.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnFillDraw.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnFillDraw.ForeColor = System.Drawing.Color.Black;
     this.btnFillDraw.Location  = new System.Drawing.Point(629, 509);
     this.btnFillDraw.Name      = "btnFillDraw";
     this.btnFillDraw.Size      = new System.Drawing.Size(89, 29);
     this.btnFillDraw.TabIndex  = 8;
     this.btnFillDraw.Text      = "Füllen";
     this.btnFillDraw.UseVisualStyleBackColor = false;
     this.btnFillDraw.Click += new System.EventHandler(this.btnFillDraw_Click);
     //
     // chatControl
     //
     this.chatControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.chatControl.BackColor   = System.Drawing.Color.White;
     this.chatControl.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.chatControl.Font        = new System.Drawing.Font("Segoe UI Emoji", 10F);
     this.chatControl.Location    = new System.Drawing.Point(866, 62);
     this.chatControl.Name        = "chatControl";
     this.chatControl.ReadOnly    = true;
     this.chatControl.ScrollBars  = System.Windows.Forms.RichTextBoxScrollBars.None;
     this.chatControl.Size        = new System.Drawing.Size(200, 441);
     this.chatControl.TabIndex    = 9;
     this.chatControl.Text        = "";
     //
     // lvwPlayers
     //
     this.lvwPlayers.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
     this.lvwPlayers.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.lvwPlayers.Location    = new System.Drawing.Point(21, 62);
     this.lvwPlayers.Name        = "lvwPlayers";
     this.lvwPlayers.Size        = new System.Drawing.Size(207, 400);
     this.lvwPlayers.TabIndex    = 10;
     this.lvwPlayers.UseCompatibleStateImageBehavior = false;
     this.lvwPlayers.View = System.Windows.Forms.View.Tile;
     this.lvwPlayers.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.lvwPlayers_ItemSelectionChanged);
     //
     // lblWord
     //
     this.lblWord.Anchor    = System.Windows.Forms.AnchorStyles.Top;
     this.lblWord.AutoSize  = true;
     this.lblWord.BackColor = System.Drawing.Color.Transparent;
     this.lblWord.Font      = new System.Drawing.Font("Consolas", 12F);
     this.lblWord.ForeColor = System.Drawing.Color.White;
     this.lblWord.Location  = new System.Drawing.Point(455, 17);
     this.lblWord.Name      = "lblWord";
     this.lblWord.Size      = new System.Drawing.Size(180, 19);
     this.lblWord.TabIndex  = 11;
     this.lblWord.Text      = "_ _ _ _ _ _ _ _ _ _";
     this.lblWord.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblRoundInfo
     //
     this.lblRoundInfo.AutoSize  = true;
     this.lblRoundInfo.BackColor = System.Drawing.Color.Transparent;
     this.lblRoundInfo.Font      = new System.Drawing.Font("Segoe UI", 14F);
     this.lblRoundInfo.ForeColor = System.Drawing.Color.White;
     this.lblRoundInfo.Location  = new System.Drawing.Point(17, 17);
     this.lblRoundInfo.Name      = "lblRoundInfo";
     this.lblRoundInfo.Size      = new System.Drawing.Size(142, 25);
     this.lblRoundInfo.TabIndex  = 12;
     this.lblRoundInfo.Text      = "Runde 1 von 10";
     //
     // btnKickPlayer
     //
     this.btnKickPlayer.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnKickPlayer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
     this.btnKickPlayer.FlatAppearance.BorderSize         = 0;
     this.btnKickPlayer.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.btnKickPlayer.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.btnKickPlayer.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnKickPlayer.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnKickPlayer.ForeColor = System.Drawing.Color.Black;
     this.btnKickPlayer.Location  = new System.Drawing.Point(22, 510);
     this.btnKickPlayer.Name      = "btnKickPlayer";
     this.btnKickPlayer.Size      = new System.Drawing.Size(128, 29);
     this.btnKickPlayer.TabIndex  = 13;
     this.btnKickPlayer.Text      = "Kicken";
     this.btnKickPlayer.UseVisualStyleBackColor = false;
     this.btnKickPlayer.Visible = false;
     this.btnKickPlayer.Click  += new System.EventHandler(this.btnKickPlayer_Click);
     //
     // PageGame
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.btnKickPlayer);
     this.Controls.Add(this.lblRoundInfo);
     this.Controls.Add(this.lblWord);
     this.Controls.Add(this.lvwPlayers);
     this.Controls.Add(this.chatControl);
     this.Controls.Add(this.btnFillDraw);
     this.Controls.Add(this.txtMessage);
     this.Controls.Add(this.colorPalette);
     this.Controls.Add(this.btnReset);
     this.Controls.Add(this.drawField);
     this.Controls.Add(this.lblPenWidth);
     this.Controls.Add(this.nupPenWidth);
     this.Location = new System.Drawing.Point(0, 0);
     this.Name     = "PageGame";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #2
0
 private void InitializeComponent()
 {
     this.lblTitle       = new DarkTheme.Label();
     this.btnCreate      = new DarkTheme.Button();
     this.btnJoin        = new DarkTheme.Button();
     this.lvwRooms       = new System.Windows.Forms.ListView();
     this.colName        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.colPlayerCount = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.lblPassword    = new DarkTheme.Label();
     this.txtPassword    = new DarkTheme.TextBox();
     this.SuspendLayout();
     //
     // lblTitle
     //
     this.lblTitle.AutoSize  = true;
     this.lblTitle.BackColor = System.Drawing.Color.Transparent;
     this.lblTitle.Font      = new System.Drawing.Font("Segoe UI Semilight", 24F);
     this.lblTitle.ForeColor = System.Drawing.Color.White;
     this.lblTitle.Location  = new System.Drawing.Point(60, 60);
     this.lblTitle.Name      = "lblTitle";
     this.lblTitle.Size      = new System.Drawing.Size(115, 45);
     this.lblTitle.TabIndex  = 1;
     this.lblTitle.Text      = "Räume";
     //
     // btnCreate
     //
     this.btnCreate.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnCreate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnCreate.FlatAppearance.BorderSize         = 0;
     this.btnCreate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnCreate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnCreate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnCreate.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnCreate.ForeColor = System.Drawing.Color.White;
     this.btnCreate.Location  = new System.Drawing.Point(68, 464);
     this.btnCreate.Name      = "btnCreate";
     this.btnCreate.Size      = new System.Drawing.Size(200, 50);
     this.btnCreate.TabIndex  = 2;
     this.btnCreate.Text      = "Erstellen";
     this.btnCreate.UseVisualStyleBackColor = false;
     this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click);
     //
     // btnJoin
     //
     this.btnJoin.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnJoin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnJoin.Enabled   = false;
     this.btnJoin.FlatAppearance.BorderSize         = 0;
     this.btnJoin.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnJoin.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnJoin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnJoin.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnJoin.ForeColor = System.Drawing.Color.White;
     this.btnJoin.Location  = new System.Drawing.Point(274, 464);
     this.btnJoin.Name      = "btnJoin";
     this.btnJoin.Size      = new System.Drawing.Size(200, 50);
     this.btnJoin.TabIndex  = 3;
     this.btnJoin.Text      = "Beitreten";
     this.btnJoin.UseVisualStyleBackColor = false;
     this.btnJoin.Click += new System.EventHandler(this.btnJoin_Click);
     //
     // lvwRooms
     //
     this.lvwRooms.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)));
     this.lvwRooms.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.colName,
         this.colPlayerCount
     });
     this.lvwRooms.FullRowSelect = true;
     this.lvwRooms.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.lvwRooms.Location      = new System.Drawing.Point(68, 108);
     this.lvwRooms.MultiSelect   = false;
     this.lvwRooms.Name          = "lvwRooms";
     this.lvwRooms.Size          = new System.Drawing.Size(406, 350);
     this.lvwRooms.TabIndex      = 4;
     this.lvwRooms.UseCompatibleStateImageBehavior = false;
     this.lvwRooms.View = System.Windows.Forms.View.Details;
     this.lvwRooms.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.lvwRooms_ItemSelectionChanged);
     //
     // colName
     //
     this.colName.Text  = "Name";
     this.colName.Width = 330;
     //
     // colPlayerCount
     //
     this.colPlayerCount.Text  = "Spieler";
     this.colPlayerCount.Width = 69;
     //
     // lblPassword
     //
     this.lblPassword.AutoSize  = true;
     this.lblPassword.BackColor = System.Drawing.Color.Transparent;
     this.lblPassword.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.lblPassword.ForeColor = System.Drawing.Color.White;
     this.lblPassword.Location  = new System.Drawing.Point(502, 107);
     this.lblPassword.Name      = "lblPassword";
     this.lblPassword.Size      = new System.Drawing.Size(72, 21);
     this.lblPassword.TabIndex  = 16;
     this.lblPassword.Text      = "Passwort";
     //
     // txtPassword
     //
     this.txtPassword.BackColor = System.Drawing.Color.White;
     this.txtPassword.Location  = new System.Drawing.Point(506, 141);
     this.txtPassword.Name      = "txtPassword";
     this.txtPassword.ReadOnly  = false;
     this.txtPassword.Size      = new System.Drawing.Size(200, 29);
     this.txtPassword.TabIndex  = 15;
     //
     // PageRooms
     //
     this.Controls.Add(this.lblPassword);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.lvwRooms);
     this.Controls.Add(this.btnJoin);
     this.Controls.Add(this.btnCreate);
     this.Controls.Add(this.lblTitle);
     this.Location = new System.Drawing.Point(0, 0);
     this.Name     = "PageRooms";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #3
0
 private void InitializeComponent()
 {
     this.lvwPlayers    = new System.Windows.Forms.ListView();
     this.lblName       = new DarkTheme.Label();
     this.txtName       = new DarkTheme.TextBox();
     this.btnReady      = new DarkTheme.Button();
     this.btnKickPlayer = new DarkTheme.Button();
     this.btnChangeName = new DarkTheme.Button();
     this.lblRoomName   = new DarkTheme.Label();
     this.SuspendLayout();
     //
     // lvwPlayers
     //
     this.lvwPlayers.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.lvwPlayers.BackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
     this.lvwPlayers.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.lvwPlayers.Font        = new System.Drawing.Font("Consolas", 9F);
     this.lvwPlayers.ForeColor   = System.Drawing.Color.White;
     this.lvwPlayers.Location    = new System.Drawing.Point(68, 107);
     this.lvwPlayers.MultiSelect = false;
     this.lvwPlayers.Name        = "lvwPlayers";
     this.lvwPlayers.Size        = new System.Drawing.Size(960, 274);
     this.lvwPlayers.TabIndex    = 1;
     this.lvwPlayers.UseCompatibleStateImageBehavior = false;
     //
     // lblName
     //
     this.lblName.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.lblName.AutoSize  = true;
     this.lblName.BackColor = System.Drawing.Color.Transparent;
     this.lblName.Font      = new System.Drawing.Font("Consolas", 12F);
     this.lblName.ForeColor = System.Drawing.Color.White;
     this.lblName.Location  = new System.Drawing.Point(64, 384);
     this.lblName.Name      = "lblName";
     this.lblName.Size      = new System.Drawing.Size(45, 19);
     this.lblName.TabIndex  = 2;
     this.lblName.Text      = "Name";
     //
     // txtName
     //
     this.txtName.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.txtName.BackColor = System.Drawing.Color.White;
     this.txtName.Location  = new System.Drawing.Point(68, 406);
     this.txtName.Name      = "txtName";
     this.txtName.ReadOnly  = false;
     this.txtName.Size      = new System.Drawing.Size(200, 29);
     this.txtName.TabIndex  = 3;
     //
     // btnReady
     //
     this.btnReady.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnReady.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnReady.FlatAppearance.BorderSize         = 0;
     this.btnReady.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnReady.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnReady.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnReady.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnReady.ForeColor = System.Drawing.Color.White;
     this.btnReady.Location  = new System.Drawing.Point(68, 441);
     this.btnReady.Name      = "btnReady";
     this.btnReady.Size      = new System.Drawing.Size(200, 50);
     this.btnReady.TabIndex  = 4;
     this.btnReady.Text      = "Bereit";
     this.btnReady.UseVisualStyleBackColor = false;
     this.btnReady.Click += new System.EventHandler(this.btnReady_Click);
     //
     // btnKickPlayer
     //
     this.btnKickPlayer.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnKickPlayer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnKickPlayer.Enabled   = false;
     this.btnKickPlayer.FlatAppearance.BorderSize         = 0;
     this.btnKickPlayer.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnKickPlayer.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnKickPlayer.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnKickPlayer.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnKickPlayer.ForeColor = System.Drawing.Color.White;
     this.btnKickPlayer.Location  = new System.Drawing.Point(828, 396);
     this.btnKickPlayer.Name      = "btnKickPlayer";
     this.btnKickPlayer.Size      = new System.Drawing.Size(200, 50);
     this.btnKickPlayer.TabIndex  = 5;
     this.btnKickPlayer.Text      = "Spieler rauswerfen";
     this.btnKickPlayer.UseVisualStyleBackColor = false;
     //
     // btnChangeName
     //
     this.btnChangeName.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnChangeName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnChangeName.FlatAppearance.BorderSize         = 0;
     this.btnChangeName.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnChangeName.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnChangeName.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnChangeName.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnChangeName.ForeColor = System.Drawing.Color.White;
     this.btnChangeName.Location  = new System.Drawing.Point(274, 441);
     this.btnChangeName.Name      = "btnChangeName";
     this.btnChangeName.Size      = new System.Drawing.Size(200, 50);
     this.btnChangeName.TabIndex  = 6;
     this.btnChangeName.Text      = "Namen ändern";
     this.btnChangeName.UseVisualStyleBackColor = false;
     this.btnChangeName.Click += new System.EventHandler(this.btnChangeName_Click);
     //
     // lblRoomName
     //
     this.lblRoomName.AutoSize  = true;
     this.lblRoomName.BackColor = System.Drawing.Color.Transparent;
     this.lblRoomName.Font      = new System.Drawing.Font("Segoe UI Semilight", 24F);
     this.lblRoomName.ForeColor = System.Drawing.Color.White;
     this.lblRoomName.Location  = new System.Drawing.Point(60, 60);
     this.lblRoomName.Name      = "lblRoomName";
     this.lblRoomName.Size      = new System.Drawing.Size(176, 45);
     this.lblRoomName.TabIndex  = 7;
     this.lblRoomName.Text      = "Raumname";
     //
     // PageLobby
     //
     this.BackColor = System.Drawing.Color.Transparent;
     this.Controls.Add(this.lblRoomName);
     this.Controls.Add(this.btnChangeName);
     this.Controls.Add(this.btnKickPlayer);
     this.Controls.Add(this.btnReady);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.lvwPlayers);
     this.Location = new System.Drawing.Point(0, 0);
     this.Name     = "PageLobby";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #4
0
 private void InitializeComponent()
 {
     this.lblTitle    = new DarkTheme.Label();
     this.txtPort     = new DarkTheme.TextBox();
     this.lblPort     = new DarkTheme.Label();
     this.lblHost     = new DarkTheme.Label();
     this.txtHost     = new DarkTheme.TextBox();
     this.btnConnect  = new DarkTheme.Button();
     this.lblPassword = new DarkTheme.Label();
     this.txtPassword = new DarkTheme.TextBox();
     this.SuspendLayout();
     //
     // lblTitle
     //
     this.lblTitle.AutoSize  = true;
     this.lblTitle.BackColor = System.Drawing.Color.Transparent;
     this.lblTitle.Font      = new System.Drawing.Font("Segoe UI Semilight", 24F);
     this.lblTitle.ForeColor = System.Drawing.Color.White;
     this.lblTitle.Location  = new System.Drawing.Point(60, 60);
     this.lblTitle.Name      = "lblTitle";
     this.lblTitle.Size      = new System.Drawing.Size(381, 45);
     this.lblTitle.TabIndex  = 0;
     this.lblTitle.Text      = "Zu einen Server verbinden";
     //
     // txtPort
     //
     this.txtPort.BackColor = System.Drawing.Color.White;
     this.txtPort.Location  = new System.Drawing.Point(274, 158);
     this.txtPort.Name      = "txtPort";
     this.txtPort.ReadOnly  = false;
     this.txtPort.Size      = new System.Drawing.Size(100, 29);
     this.txtPort.TabIndex  = 11;
     //
     // lblPort
     //
     this.lblPort.AutoSize  = true;
     this.lblPort.BackColor = System.Drawing.Color.Transparent;
     this.lblPort.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.lblPort.ForeColor = System.Drawing.Color.White;
     this.lblPort.Location  = new System.Drawing.Point(270, 124);
     this.lblPort.Name      = "lblPort";
     this.lblPort.Size      = new System.Drawing.Size(38, 21);
     this.lblPort.TabIndex  = 10;
     this.lblPort.Text      = "Port";
     //
     // lblHost
     //
     this.lblHost.AutoSize  = true;
     this.lblHost.BackColor = System.Drawing.Color.Transparent;
     this.lblHost.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.lblHost.ForeColor = System.Drawing.Color.White;
     this.lblHost.Location  = new System.Drawing.Point(64, 124);
     this.lblHost.Name      = "lblHost";
     this.lblHost.Size      = new System.Drawing.Size(42, 21);
     this.lblHost.TabIndex  = 9;
     this.lblHost.Text      = "Host";
     //
     // txtHost
     //
     this.txtHost.BackColor = System.Drawing.Color.White;
     this.txtHost.Location  = new System.Drawing.Point(68, 158);
     this.txtHost.Name      = "txtHost";
     this.txtHost.ReadOnly  = false;
     this.txtHost.Size      = new System.Drawing.Size(200, 29);
     this.txtHost.TabIndex  = 8;
     //
     // btnConnect
     //
     this.btnConnect.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnConnect.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnConnect.FlatAppearance.BorderSize         = 0;
     this.btnConnect.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnConnect.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnConnect.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnConnect.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnConnect.ForeColor = System.Drawing.Color.White;
     this.btnConnect.Location  = new System.Drawing.Point(68, 464);
     this.btnConnect.Name      = "btnConnect";
     this.btnConnect.Size      = new System.Drawing.Size(200, 50);
     this.btnConnect.TabIndex  = 12;
     this.btnConnect.Text      = "Verbinden";
     this.btnConnect.UseVisualStyleBackColor = false;
     this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
     //
     // lblPassword
     //
     this.lblPassword.AutoSize  = true;
     this.lblPassword.BackColor = System.Drawing.Color.Transparent;
     this.lblPassword.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.lblPassword.ForeColor = System.Drawing.Color.White;
     this.lblPassword.Location  = new System.Drawing.Point(64, 200);
     this.lblPassword.Name      = "lblPassword";
     this.lblPassword.Size      = new System.Drawing.Size(72, 21);
     this.lblPassword.TabIndex  = 14;
     this.lblPassword.Text      = "Passwort";
     //
     // txtPassword
     //
     this.txtPassword.BackColor = System.Drawing.Color.White;
     this.txtPassword.Location  = new System.Drawing.Point(68, 234);
     this.txtPassword.Name      = "txtPassword";
     this.txtPassword.ReadOnly  = false;
     this.txtPassword.Size      = new System.Drawing.Size(200, 29);
     this.txtPassword.TabIndex  = 13;
     //
     // PageConnect
     //
     this.Controls.Add(this.lblPassword);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.btnConnect);
     this.Controls.Add(this.txtPort);
     this.Controls.Add(this.lblPort);
     this.Controls.Add(this.lblHost);
     this.Controls.Add(this.txtHost);
     this.Controls.Add(this.lblTitle);
     this.Location = new System.Drawing.Point(0, 0);
     this.Name     = "PageConnect";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #5
0
 private void InitializeComponent()
 {
     this.lblPassword = new DarkTheme.Label();
     this.txtPassword = new DarkTheme.TextBox();
     this.lblName     = new DarkTheme.Label();
     this.txtName     = new DarkTheme.TextBox();
     this.btnCreate   = new DarkTheme.Button();
     this.lblTitle    = new DarkTheme.Label();
     this.SuspendLayout();
     //
     // lblPassword
     //
     this.lblPassword.AutoSize  = true;
     this.lblPassword.BackColor = System.Drawing.Color.Transparent;
     this.lblPassword.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.lblPassword.ForeColor = System.Drawing.Color.White;
     this.lblPassword.Location  = new System.Drawing.Point(64, 191);
     this.lblPassword.Name      = "lblPassword";
     this.lblPassword.Size      = new System.Drawing.Size(72, 21);
     this.lblPassword.TabIndex  = 11;
     this.lblPassword.Text      = "Passwort";
     //
     // txtPassword
     //
     this.txtPassword.BackColor = System.Drawing.Color.White;
     this.txtPassword.Location  = new System.Drawing.Point(68, 219);
     this.txtPassword.Name      = "txtPassword";
     this.txtPassword.ReadOnly  = false;
     this.txtPassword.Size      = new System.Drawing.Size(200, 29);
     this.txtPassword.TabIndex  = 10;
     //
     // lblName
     //
     this.lblName.AutoSize  = true;
     this.lblName.BackColor = System.Drawing.Color.Transparent;
     this.lblName.Font      = new System.Drawing.Font("Segoe UI", 12F);
     this.lblName.ForeColor = System.Drawing.Color.White;
     this.lblName.Location  = new System.Drawing.Point(64, 127);
     this.lblName.Name      = "lblName";
     this.lblName.Size      = new System.Drawing.Size(52, 21);
     this.lblName.TabIndex  = 9;
     this.lblName.Text      = "Name";
     //
     // txtName
     //
     this.txtName.BackColor = System.Drawing.Color.White;
     this.txtName.Location  = new System.Drawing.Point(68, 155);
     this.txtName.Name      = "txtName";
     this.txtName.ReadOnly  = false;
     this.txtName.Size      = new System.Drawing.Size(200, 29);
     this.txtName.TabIndex  = 8;
     //
     // btnCreate
     //
     this.btnCreate.Anchor    = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.btnCreate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.btnCreate.FlatAppearance.BorderSize         = 0;
     this.btnCreate.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnCreate.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.btnCreate.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnCreate.Font      = new System.Drawing.Font("Consolas", 12F);
     this.btnCreate.ForeColor = System.Drawing.Color.White;
     this.btnCreate.Location  = new System.Drawing.Point(68, 464);
     this.btnCreate.Name      = "btnCreate";
     this.btnCreate.Size      = new System.Drawing.Size(200, 50);
     this.btnCreate.TabIndex  = 3;
     this.btnCreate.Text      = "Erstellen";
     this.btnCreate.UseVisualStyleBackColor = false;
     this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click);
     //
     // lblTitle
     //
     this.lblTitle.AutoSize  = true;
     this.lblTitle.BackColor = System.Drawing.Color.Transparent;
     this.lblTitle.Font      = new System.Drawing.Font("Segoe UI Semilight", 24F);
     this.lblTitle.ForeColor = System.Drawing.Color.White;
     this.lblTitle.Location  = new System.Drawing.Point(60, 60);
     this.lblTitle.Name      = "lblTitle";
     this.lblTitle.Size      = new System.Drawing.Size(222, 45);
     this.lblTitle.TabIndex  = 2;
     this.lblTitle.Text      = "Raum erstellen";
     //
     // PageCreateRoom
     //
     this.Controls.Add(this.lblPassword);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.lblName);
     this.Controls.Add(this.txtName);
     this.Controls.Add(this.btnCreate);
     this.Controls.Add(this.lblTitle);
     this.Location = new System.Drawing.Point(0, 0);
     this.Name     = "PageCreateRoom";
     this.ResumeLayout(false);
     this.PerformLayout();
 }