396 lines
16 KiB
C#
396 lines
16 KiB
C#
namespace qtc_net_client_2
|
|
{
|
|
partial class Main
|
|
{
|
|
/// <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()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
|
|
tbcMain = new TabControl();
|
|
tbpContacts = new TabPage();
|
|
lvContacts = new ListView();
|
|
ilProfilePics = new ImageList(components);
|
|
tbpRooms = new TabPage();
|
|
lbRooms = new ListBox();
|
|
tbpOnlineUsers = new TabPage();
|
|
lbOnlineUsers = new ListBox();
|
|
ilTabIcons = new ImageList(components);
|
|
pbUserPfp = new PictureBox();
|
|
ctxmChangeStatus = new ContextMenuStrip(components);
|
|
onlineToolStripMenuItem = new ToolStripMenuItem();
|
|
awayToolStripMenuItem = new ToolStripMenuItem();
|
|
doNotDisturbToolStripMenuItem = new ToolStripMenuItem();
|
|
invisibleToolStripMenuItem = new ToolStripMenuItem();
|
|
lblWelcome = new Label();
|
|
llblSignIn = new LinkLabel();
|
|
llblSignOut = new LinkLabel();
|
|
llblEditProfile = new LinkLabel();
|
|
lblRequestNotif = new Label();
|
|
niMain = new NotifyIcon(components);
|
|
btnAddRoom = new Button();
|
|
pbCurrencyIcon = new PictureBox();
|
|
lblCurrencyAmount = new Label();
|
|
llblClaimSpin = new LinkLabel();
|
|
tbcMain.SuspendLayout();
|
|
tbpContacts.SuspendLayout();
|
|
tbpRooms.SuspendLayout();
|
|
tbpOnlineUsers.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pbUserPfp).BeginInit();
|
|
ctxmChangeStatus.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pbCurrencyIcon).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// tbcMain
|
|
//
|
|
tbcMain.Controls.Add(tbpContacts);
|
|
tbcMain.Controls.Add(tbpRooms);
|
|
tbcMain.Controls.Add(tbpOnlineUsers);
|
|
tbcMain.Enabled = false;
|
|
tbcMain.ImageList = ilTabIcons;
|
|
tbcMain.Location = new Point(12, 66);
|
|
tbcMain.Name = "tbcMain";
|
|
tbcMain.SelectedIndex = 0;
|
|
tbcMain.Size = new Size(258, 535);
|
|
tbcMain.TabIndex = 0;
|
|
//
|
|
// tbpContacts
|
|
//
|
|
tbpContacts.Controls.Add(lvContacts);
|
|
tbpContacts.ImageKey = "ContactsIcon.png";
|
|
tbpContacts.Location = new Point(4, 24);
|
|
tbpContacts.Name = "tbpContacts";
|
|
tbpContacts.Padding = new Padding(3);
|
|
tbpContacts.Size = new Size(250, 507);
|
|
tbpContacts.TabIndex = 0;
|
|
tbpContacts.Text = "Contacts";
|
|
tbpContacts.UseVisualStyleBackColor = true;
|
|
//
|
|
// lvContacts
|
|
//
|
|
lvContacts.LargeImageList = ilProfilePics;
|
|
lvContacts.Location = new Point(0, 0);
|
|
lvContacts.Name = "lvContacts";
|
|
lvContacts.Size = new Size(250, 507);
|
|
lvContacts.SmallImageList = ilProfilePics;
|
|
lvContacts.TabIndex = 1;
|
|
lvContacts.UseCompatibleStateImageBehavior = false;
|
|
lvContacts.View = View.List;
|
|
lvContacts.DoubleClick += lvContacts_DoubleClick;
|
|
//
|
|
// ilProfilePics
|
|
//
|
|
ilProfilePics.ColorDepth = ColorDepth.Depth32Bit;
|
|
ilProfilePics.ImageSize = new Size(16, 16);
|
|
ilProfilePics.TransparentColor = Color.Transparent;
|
|
//
|
|
// tbpRooms
|
|
//
|
|
tbpRooms.Controls.Add(lbRooms);
|
|
tbpRooms.ImageKey = "RoomsChatIcon.png";
|
|
tbpRooms.Location = new Point(4, 24);
|
|
tbpRooms.Name = "tbpRooms";
|
|
tbpRooms.Padding = new Padding(3);
|
|
tbpRooms.Size = new Size(250, 507);
|
|
tbpRooms.TabIndex = 1;
|
|
tbpRooms.Text = "Rooms";
|
|
tbpRooms.UseVisualStyleBackColor = true;
|
|
//
|
|
// lbRooms
|
|
//
|
|
lbRooms.FormattingEnabled = true;
|
|
lbRooms.ItemHeight = 15;
|
|
lbRooms.Location = new Point(0, 0);
|
|
lbRooms.Name = "lbRooms";
|
|
lbRooms.Size = new Size(250, 514);
|
|
lbRooms.TabIndex = 0;
|
|
lbRooms.DoubleClick += lbRooms_DoubleClick;
|
|
//
|
|
// tbpOnlineUsers
|
|
//
|
|
tbpOnlineUsers.Controls.Add(lbOnlineUsers);
|
|
tbpOnlineUsers.ImageIndex = 0;
|
|
tbpOnlineUsers.Location = new Point(4, 24);
|
|
tbpOnlineUsers.Name = "tbpOnlineUsers";
|
|
tbpOnlineUsers.Padding = new Padding(3);
|
|
tbpOnlineUsers.Size = new Size(250, 507);
|
|
tbpOnlineUsers.TabIndex = 2;
|
|
tbpOnlineUsers.Text = "Online Users";
|
|
tbpOnlineUsers.UseVisualStyleBackColor = true;
|
|
//
|
|
// lbOnlineUsers
|
|
//
|
|
lbOnlineUsers.FormattingEnabled = true;
|
|
lbOnlineUsers.ItemHeight = 15;
|
|
lbOnlineUsers.Location = new Point(0, 0);
|
|
lbOnlineUsers.Name = "lbOnlineUsers";
|
|
lbOnlineUsers.Size = new Size(250, 514);
|
|
lbOnlineUsers.TabIndex = 0;
|
|
lbOnlineUsers.DoubleClick += lbOnlineUsers_DoubleClick;
|
|
//
|
|
// ilTabIcons
|
|
//
|
|
ilTabIcons.ColorDepth = ColorDepth.Depth32Bit;
|
|
ilTabIcons.ImageStream = (ImageListStreamer)resources.GetObject("ilTabIcons.ImageStream");
|
|
ilTabIcons.TransparentColor = Color.Transparent;
|
|
ilTabIcons.Images.SetKeyName(0, "ContactsIcon.png");
|
|
ilTabIcons.Images.SetKeyName(1, "RoomsChatIcon.png");
|
|
//
|
|
// pbUserPfp
|
|
//
|
|
pbUserPfp.BorderStyle = BorderStyle.FixedSingle;
|
|
pbUserPfp.ContextMenuStrip = ctxmChangeStatus;
|
|
pbUserPfp.Image = Properties.Resources.DefaultPfp;
|
|
pbUserPfp.Location = new Point(12, 10);
|
|
pbUserPfp.Name = "pbUserPfp";
|
|
pbUserPfp.Size = new Size(51, 50);
|
|
pbUserPfp.SizeMode = PictureBoxSizeMode.StretchImage;
|
|
pbUserPfp.TabIndex = 1;
|
|
pbUserPfp.TabStop = false;
|
|
pbUserPfp.Click += pbUserPfp_Click;
|
|
//
|
|
// ctxmChangeStatus
|
|
//
|
|
ctxmChangeStatus.Items.AddRange(new ToolStripItem[] { onlineToolStripMenuItem, awayToolStripMenuItem, doNotDisturbToolStripMenuItem, invisibleToolStripMenuItem });
|
|
ctxmChangeStatus.Name = "ctxmChangeStatus";
|
|
ctxmChangeStatus.Size = new Size(154, 92);
|
|
ctxmChangeStatus.ItemClicked += ctxmChangeStatus_ItemClicked;
|
|
//
|
|
// onlineToolStripMenuItem
|
|
//
|
|
onlineToolStripMenuItem.Image = Properties.Resources.OnlineIcon;
|
|
onlineToolStripMenuItem.Name = "onlineToolStripMenuItem";
|
|
onlineToolStripMenuItem.Size = new Size(153, 22);
|
|
onlineToolStripMenuItem.Text = "Online";
|
|
//
|
|
// awayToolStripMenuItem
|
|
//
|
|
awayToolStripMenuItem.Image = Properties.Resources.AwayIcon;
|
|
awayToolStripMenuItem.Name = "awayToolStripMenuItem";
|
|
awayToolStripMenuItem.Size = new Size(153, 22);
|
|
awayToolStripMenuItem.Text = "Away";
|
|
//
|
|
// doNotDisturbToolStripMenuItem
|
|
//
|
|
doNotDisturbToolStripMenuItem.Image = Properties.Resources.DNDIcon;
|
|
doNotDisturbToolStripMenuItem.Name = "doNotDisturbToolStripMenuItem";
|
|
doNotDisturbToolStripMenuItem.Size = new Size(153, 22);
|
|
doNotDisturbToolStripMenuItem.Text = "Do Not Disturb";
|
|
//
|
|
// invisibleToolStripMenuItem
|
|
//
|
|
invisibleToolStripMenuItem.Image = Properties.Resources.OfflineIcon;
|
|
invisibleToolStripMenuItem.Name = "invisibleToolStripMenuItem";
|
|
invisibleToolStripMenuItem.Size = new Size(153, 22);
|
|
invisibleToolStripMenuItem.Text = "Invisible";
|
|
//
|
|
// lblWelcome
|
|
//
|
|
lblWelcome.AutoSize = true;
|
|
lblWelcome.Font = new Font("Segoe UI Light", 9F);
|
|
lblWelcome.ForeColor = SystemColors.ControlLightLight;
|
|
lblWelcome.Location = new Point(65, 17);
|
|
lblWelcome.Name = "lblWelcome";
|
|
lblWelcome.Size = new Size(60, 15);
|
|
lblWelcome.TabIndex = 2;
|
|
lblWelcome.Text = "Welcome, ";
|
|
//
|
|
// llblSignIn
|
|
//
|
|
llblSignIn.AutoSize = true;
|
|
llblSignIn.Font = new Font("Segoe UI Light", 9F);
|
|
llblSignIn.LinkColor = Color.White;
|
|
llblSignIn.Location = new Point(118, 17);
|
|
llblSignIn.Name = "llblSignIn";
|
|
llblSignIn.Size = new Size(40, 15);
|
|
llblSignIn.TabIndex = 3;
|
|
llblSignIn.TabStop = true;
|
|
llblSignIn.Text = "Sign In";
|
|
llblSignIn.LinkClicked += llblSignIn_LinkClicked;
|
|
//
|
|
// llblSignOut
|
|
//
|
|
llblSignOut.AutoSize = true;
|
|
llblSignOut.Font = new Font("Segoe UI Light", 9F);
|
|
llblSignOut.LinkColor = Color.White;
|
|
llblSignOut.Location = new Point(65, 35);
|
|
llblSignOut.Name = "llblSignOut";
|
|
llblSignOut.Size = new Size(50, 15);
|
|
llblSignOut.TabIndex = 4;
|
|
llblSignOut.TabStop = true;
|
|
llblSignOut.Text = "Sign Out";
|
|
llblSignOut.Visible = false;
|
|
llblSignOut.LinkClicked += llblSignOut_LinkClicked;
|
|
//
|
|
// llblEditProfile
|
|
//
|
|
llblEditProfile.AutoSize = true;
|
|
llblEditProfile.Font = new Font("Segoe UI Light", 9F);
|
|
llblEditProfile.LinkColor = Color.White;
|
|
llblEditProfile.Location = new Point(113, 35);
|
|
llblEditProfile.Name = "llblEditProfile";
|
|
llblEditProfile.Size = new Size(60, 15);
|
|
llblEditProfile.TabIndex = 5;
|
|
llblEditProfile.TabStop = true;
|
|
llblEditProfile.Text = "Edit Profile";
|
|
llblEditProfile.Visible = false;
|
|
llblEditProfile.LinkClicked += llblEditProfile_LinkClicked;
|
|
//
|
|
// lblRequestNotif
|
|
//
|
|
lblRequestNotif.AutoSize = true;
|
|
lblRequestNotif.Font = new Font("Segoe UI", 7F, FontStyle.Bold);
|
|
lblRequestNotif.Location = new Point(128, 54);
|
|
lblRequestNotif.Name = "lblRequestNotif";
|
|
lblRequestNotif.Size = new Size(138, 12);
|
|
lblRequestNotif.TabIndex = 6;
|
|
lblRequestNotif.Text = "You Have Contacts Requests!";
|
|
lblRequestNotif.Visible = false;
|
|
//
|
|
// niMain
|
|
//
|
|
niMain.Icon = (Icon)resources.GetObject("niMain.Icon");
|
|
niMain.Text = "QtC.NET Client";
|
|
niMain.Visible = true;
|
|
niMain.DoubleClick += niMain_DoubleClick;
|
|
//
|
|
// btnAddRoom
|
|
//
|
|
btnAddRoom.FlatAppearance.BorderSize = 0;
|
|
btnAddRoom.FlatStyle = FlatStyle.Flat;
|
|
btnAddRoom.Location = new Point(260, 1);
|
|
btnAddRoom.Name = "btnAddRoom";
|
|
btnAddRoom.Size = new Size(20, 22);
|
|
btnAddRoom.TabIndex = 7;
|
|
btnAddRoom.UseVisualStyleBackColor = true;
|
|
btnAddRoom.Click += btnAddRoom_Click;
|
|
//
|
|
// pbCurrencyIcon
|
|
//
|
|
pbCurrencyIcon.Image = Properties.Resources.CurrencyIcon;
|
|
pbCurrencyIcon.Location = new Point(223, 5);
|
|
pbCurrencyIcon.Name = "pbCurrencyIcon";
|
|
pbCurrencyIcon.Size = new Size(15, 14);
|
|
pbCurrencyIcon.SizeMode = PictureBoxSizeMode.StretchImage;
|
|
pbCurrencyIcon.TabIndex = 9;
|
|
pbCurrencyIcon.TabStop = false;
|
|
pbCurrencyIcon.Visible = false;
|
|
//
|
|
// lblCurrencyAmount
|
|
//
|
|
lblCurrencyAmount.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
lblCurrencyAmount.AutoSize = true;
|
|
lblCurrencyAmount.BackColor = Color.Transparent;
|
|
lblCurrencyAmount.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
|
|
lblCurrencyAmount.ForeColor = Color.White;
|
|
lblCurrencyAmount.Location = new Point(239, 5);
|
|
lblCurrencyAmount.Name = "lblCurrencyAmount";
|
|
lblCurrencyAmount.Size = new Size(14, 15);
|
|
lblCurrencyAmount.TabIndex = 10;
|
|
lblCurrencyAmount.Text = "0";
|
|
lblCurrencyAmount.TextAlign = ContentAlignment.MiddleCenter;
|
|
lblCurrencyAmount.Visible = false;
|
|
//
|
|
// llblClaimSpin
|
|
//
|
|
llblClaimSpin.AutoSize = true;
|
|
llblClaimSpin.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
|
|
llblClaimSpin.Location = new Point(185, 35);
|
|
llblClaimSpin.Name = "llblClaimSpin";
|
|
llblClaimSpin.Size = new Size(94, 15);
|
|
llblClaimSpin.TabIndex = 11;
|
|
llblClaimSpin.TabStop = true;
|
|
llblClaimSpin.Text = "Claim Daily Spin";
|
|
llblClaimSpin.Visible = false;
|
|
llblClaimSpin.LinkClicked += llblClaimSpin_LinkClicked;
|
|
//
|
|
// Main
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.DodgerBlue;
|
|
ClientSize = new Size(282, 613);
|
|
Controls.Add(llblClaimSpin);
|
|
Controls.Add(pbCurrencyIcon);
|
|
Controls.Add(lblCurrencyAmount);
|
|
Controls.Add(btnAddRoom);
|
|
Controls.Add(lblRequestNotif);
|
|
Controls.Add(llblEditProfile);
|
|
Controls.Add(llblSignOut);
|
|
Controls.Add(llblSignIn);
|
|
Controls.Add(lblWelcome);
|
|
Controls.Add(pbUserPfp);
|
|
Controls.Add(tbcMain);
|
|
FormBorderStyle = FormBorderStyle.FixedDialog;
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
MaximizeBox = false;
|
|
Name = "Main";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "QtC.NET Client";
|
|
FormClosed += frmMain_FormClosed;
|
|
Load += frmMain_Load;
|
|
Resize += frmMain_Resize;
|
|
tbcMain.ResumeLayout(false);
|
|
tbpContacts.ResumeLayout(false);
|
|
tbpRooms.ResumeLayout(false);
|
|
tbpOnlineUsers.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)pbUserPfp).EndInit();
|
|
ctxmChangeStatus.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)pbCurrencyIcon).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private TabControl tbcMain;
|
|
private TabPage tbpContacts;
|
|
private TabPage tbpRooms;
|
|
private ListBox lbRooms;
|
|
private PictureBox pbUserPfp;
|
|
private Label lblWelcome;
|
|
private LinkLabel llblSignIn;
|
|
private LinkLabel llblSignOut;
|
|
private TabPage tbpOnlineUsers;
|
|
private ListBox lbOnlineUsers;
|
|
private LinkLabel llblEditProfile;
|
|
private Label lblRequestNotif;
|
|
private ListView lvContacts;
|
|
private ImageList ilProfilePics;
|
|
private NotifyIcon niMain;
|
|
private ImageList ilTabIcons;
|
|
private ContextMenuStrip ctxmChangeStatus;
|
|
private ToolStripMenuItem onlineToolStripMenuItem;
|
|
private ToolStripMenuItem awayToolStripMenuItem;
|
|
private ToolStripMenuItem doNotDisturbToolStripMenuItem;
|
|
private ToolStripMenuItem invisibleToolStripMenuItem;
|
|
private Button btnAddRoom;
|
|
private PictureBox pbCurrencyIcon;
|
|
private Label lblCurrencyAmount;
|
|
private LinkLabel llblClaimSpin;
|
|
}
|
|
}
|