160 lines
8.9 KiB
C#
160 lines
8.9 KiB
C#
namespace Neshina1703
|
|
{
|
|
partial class MessengerForm
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
private System.Windows.Forms.SplitContainer splitContainer;
|
|
private System.Windows.Forms.Panel panelLeft;
|
|
private System.Windows.Forms.Panel panelRight;
|
|
private System.Windows.Forms.DataGridView dgvConversations;
|
|
private System.Windows.Forms.Button btnStartChat;
|
|
private System.Windows.Forms.ComboBox cbEmployees;
|
|
private System.Windows.Forms.FlowLayoutPanel flowMessages;
|
|
private System.Windows.Forms.TextBox txtMessage;
|
|
private System.Windows.Forms.Button btnSend;
|
|
private System.Windows.Forms.Label lblCurrentChat;
|
|
private System.Windows.Forms.Label lblTitle;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.splitContainer = new System.Windows.Forms.SplitContainer();
|
|
this.panelLeft = new System.Windows.Forms.Panel();
|
|
this.dgvConversations = new System.Windows.Forms.DataGridView();
|
|
this.btnStartChat = new System.Windows.Forms.Button();
|
|
this.cbEmployees = new System.Windows.Forms.ComboBox();
|
|
this.panelRight = new System.Windows.Forms.Panel();
|
|
this.flowMessages = new System.Windows.Forms.FlowLayoutPanel();
|
|
this.txtMessage = new System.Windows.Forms.TextBox();
|
|
this.btnSend = new System.Windows.Forms.Button();
|
|
this.lblCurrentChat = new System.Windows.Forms.Label();
|
|
this.lblTitle = new System.Windows.Forms.Label();
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
|
|
this.splitContainer.Panel1.SuspendLayout();
|
|
this.splitContainer.Panel2.SuspendLayout();
|
|
this.splitContainer.SuspendLayout();
|
|
this.panelLeft.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvConversations)).BeginInit();
|
|
this.panelRight.SuspendLayout();
|
|
this.SuspendLayout();
|
|
|
|
this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.splitContainer.Location = new System.Drawing.Point(0, 50);
|
|
this.splitContainer.Name = "splitContainer";
|
|
this.splitContainer.Size = new System.Drawing.Size(800, 400);
|
|
this.splitContainer.SplitterDistance = 250;
|
|
|
|
this.panelLeft.BackColor = System.Drawing.Color.FromArgb(176, 253, 161);
|
|
this.panelLeft.Controls.Add(this.dgvConversations);
|
|
this.panelLeft.Controls.Add(this.btnStartChat);
|
|
this.panelLeft.Controls.Add(this.cbEmployees);
|
|
this.panelLeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
this.dgvConversations.AllowUserToAddRows = false;
|
|
this.dgvConversations.AllowUserToDeleteRows = false;
|
|
this.dgvConversations.BackgroundColor = System.Drawing.Color.White;
|
|
this.dgvConversations.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dgvConversations.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.dgvConversations.Location = new System.Drawing.Point(0, 60);
|
|
this.dgvConversations.Name = "dgvConversations";
|
|
this.dgvConversations.ReadOnly = true;
|
|
this.dgvConversations.Size = new System.Drawing.Size(250, 340);
|
|
this.dgvConversations.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
this.dgvConversations.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvConversations_CellClick);
|
|
|
|
this.btnStartChat.BackColor = System.Drawing.Color.FromArgb(91, 209, 45);
|
|
this.btnStartChat.FlatAppearance.BorderSize = 0;
|
|
this.btnStartChat.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnStartChat.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold);
|
|
this.btnStartChat.ForeColor = System.Drawing.Color.Black;
|
|
this.btnStartChat.Location = new System.Drawing.Point(5, 30);
|
|
this.btnStartChat.Name = "btnStartChat";
|
|
this.btnStartChat.Size = new System.Drawing.Size(100, 30);
|
|
this.btnStartChat.TabIndex = 1;
|
|
this.btnStartChat.Text = "Начать чат";
|
|
this.btnStartChat.Click += new System.EventHandler(this.btnStartChat_Click);
|
|
|
|
this.cbEmployees.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbEmployees.FormattingEnabled = true;
|
|
this.cbEmployees.Location = new System.Drawing.Point(5, 5);
|
|
this.cbEmployees.Name = "cbEmployees";
|
|
this.cbEmployees.Size = new System.Drawing.Size(240, 21);
|
|
|
|
this.panelRight.BackColor = System.Drawing.Color.White;
|
|
this.panelRight.Controls.Add(this.flowMessages);
|
|
this.panelRight.Controls.Add(this.txtMessage);
|
|
this.panelRight.Controls.Add(this.btnSend);
|
|
this.panelRight.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
this.flowMessages.AutoScroll = true;
|
|
this.flowMessages.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.flowMessages.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
|
this.flowMessages.Location = new System.Drawing.Point(0, 30);
|
|
this.flowMessages.Name = "flowMessages";
|
|
this.flowMessages.Size = new System.Drawing.Size(546, 330);
|
|
this.flowMessages.WrapContents = false;
|
|
|
|
this.txtMessage.Location = new System.Drawing.Point(0, 360);
|
|
this.txtMessage.Multiline = true;
|
|
this.txtMessage.Name = "txtMessage";
|
|
this.txtMessage.Size = new System.Drawing.Size(460, 40);
|
|
this.txtMessage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMessage_KeyDown);
|
|
|
|
this.btnSend.BackColor = System.Drawing.Color.FromArgb(91, 209, 45);
|
|
this.btnSend.FlatAppearance.BorderSize = 0;
|
|
this.btnSend.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnSend.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold);
|
|
this.btnSend.ForeColor = System.Drawing.Color.Black;
|
|
this.btnSend.Location = new System.Drawing.Point(465, 360);
|
|
this.btnSend.Name = "btnSend";
|
|
this.btnSend.Size = new System.Drawing.Size(80, 40);
|
|
this.btnSend.TabIndex = 2;
|
|
this.btnSend.Text = "Отправить";
|
|
this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
|
|
|
|
this.lblCurrentChat.AutoSize = true;
|
|
this.lblCurrentChat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold);
|
|
this.lblCurrentChat.ForeColor = System.Drawing.Color.Black;
|
|
this.lblCurrentChat.Location = new System.Drawing.Point(265, 15);
|
|
|
|
this.lblTitle.AutoSize = true;
|
|
this.lblTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold);
|
|
this.lblTitle.ForeColor = System.Drawing.Color.Black;
|
|
this.lblTitle.Location = new System.Drawing.Point(12, 15);
|
|
this.lblTitle.Text = "💬 Мессенджер";
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.White;
|
|
this.ClientSize = new System.Drawing.Size(800, 450);
|
|
this.Controls.Add(this.lblTitle);
|
|
this.Controls.Add(this.lblCurrentChat);
|
|
this.Controls.Add(this.splitContainer);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
this.MaximizeBox = false;
|
|
this.Name = "MessengerForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Аптека — Мессенджер";
|
|
this.Load += new System.EventHandler(this.MessengerForm_Load);
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MessengerForm_FormClosing);
|
|
|
|
this.splitContainer.Panel1.ResumeLayout(false);
|
|
this.splitContainer.Panel2.ResumeLayout(false);
|
|
this.splitContainer.Panel2.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
|
|
this.splitContainer.ResumeLayout(false);
|
|
this.panelLeft.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvConversations)).EndInit();
|
|
this.panelRight.ResumeLayout(false);
|
|
this.panelRight.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
}
|
|
}
|
|
} |