diff --git a/Remontor/.vs/Remontor/FileContentIndex/179f1e71-12a2-4e4f-8260-627c639129ad.vsidx b/Remontor/.vs/Remontor/FileContentIndex/179f1e71-12a2-4e4f-8260-627c639129ad.vsidx new file mode 100644 index 0000000..d12dab6 Binary files /dev/null and b/Remontor/.vs/Remontor/FileContentIndex/179f1e71-12a2-4e4f-8260-627c639129ad.vsidx differ diff --git a/Remontor/.vs/Remontor/FileContentIndex/343d5f7c-99dc-4e49-8b44-26420d615f7c.vsidx b/Remontor/.vs/Remontor/FileContentIndex/343d5f7c-99dc-4e49-8b44-26420d615f7c.vsidx deleted file mode 100644 index 8d91c55..0000000 Binary files a/Remontor/.vs/Remontor/FileContentIndex/343d5f7c-99dc-4e49-8b44-26420d615f7c.vsidx and /dev/null differ diff --git a/Remontor/.vs/Remontor/FileContentIndex/9a61cb09-7211-4570-8adf-f890b657f684.vsidx b/Remontor/.vs/Remontor/FileContentIndex/9a61cb09-7211-4570-8adf-f890b657f684.vsidx new file mode 100644 index 0000000..f2ec436 Binary files /dev/null and b/Remontor/.vs/Remontor/FileContentIndex/9a61cb09-7211-4570-8adf-f890b657f684.vsidx differ diff --git a/Remontor/.vs/Remontor/FileContentIndex/d0ce2c6b-7ad6-40c2-bd45-23e194891d3e.vsidx b/Remontor/.vs/Remontor/FileContentIndex/d0ce2c6b-7ad6-40c2-bd45-23e194891d3e.vsidx new file mode 100644 index 0000000..58385da Binary files /dev/null and b/Remontor/.vs/Remontor/FileContentIndex/d0ce2c6b-7ad6-40c2-bd45-23e194891d3e.vsidx differ diff --git a/Remontor/.vs/Remontor/FileContentIndex/e679b517-87f7-412e-a799-c3ff5c600664.vsidx b/Remontor/.vs/Remontor/FileContentIndex/e679b517-87f7-412e-a799-c3ff5c600664.vsidx new file mode 100644 index 0000000..400574d Binary files /dev/null and b/Remontor/.vs/Remontor/FileContentIndex/e679b517-87f7-412e-a799-c3ff5c600664.vsidx differ diff --git a/Remontor/.vs/Remontor/v17/.suo b/Remontor/.vs/Remontor/v17/.suo index 1c635b8..69ddcf4 100644 Binary files a/Remontor/.vs/Remontor/v17/.suo and b/Remontor/.vs/Remontor/v17/.suo differ diff --git a/Remontor/BarSessionControl.Designer.cs b/Remontor/BarSessionControl.Designer.cs new file mode 100644 index 0000000..adaa612 --- /dev/null +++ b/Remontor/BarSessionControl.Designer.cs @@ -0,0 +1,193 @@ +namespace Remontor +{ + partial class BarSessionControl + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором компонентов + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.button7 = new System.Windows.Forms.Button(); + this.button6 = new System.Windows.Forms.Button(); + this.button5 = new System.Windows.Forms.Button(); + this.ShowBar = new System.Windows.Forms.Button(); + this.NewBtn = new System.Windows.Forms.Button(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.flowLayoutPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // button2 + // + this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.button2.FlatAppearance.BorderSize = 0; + this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button2.Location = new System.Drawing.Point(461, 0); + this.button2.Margin = new System.Windows.Forms.Padding(0); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(140, 21); + this.button2.TabIndex = 2; + this.button2.Text = "k.kotov(1MA001236)"; + this.button2.UseVisualStyleBackColor = false; + // + // button3 + // + this.button3.BackColor = System.Drawing.SystemColors.Control; + this.button3.FlatAppearance.BorderSize = 0; + this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button3.Location = new System.Drawing.Point(352, 0); + this.button3.Margin = new System.Windows.Forms.Padding(0); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(109, 21); + this.button3.TabIndex = 3; + this.button3.Text = "Котов Киррил"; + this.button3.UseVisualStyleBackColor = false; + // + // button4 + // + this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.button4.FlatAppearance.BorderSize = 0; + this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button4.Location = new System.Drawing.Point(243, 0); + this.button4.Margin = new System.Windows.Forms.Padding(0); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(109, 21); + this.button4.TabIndex = 4; + this.button4.Text = "Котов Киррил"; + this.button4.UseVisualStyleBackColor = false; + // + // button7 + // + this.button7.BackColor = System.Drawing.SystemColors.Control; + this.button7.FlatAppearance.BorderSize = 0; + this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button7.Location = new System.Drawing.Point(134, 0); + this.button7.Margin = new System.Windows.Forms.Padding(0); + this.button7.Name = "button7"; + this.button7.Size = new System.Drawing.Size(109, 21); + this.button7.TabIndex = 7; + this.button7.Text = "Котов Киррил"; + this.button7.UseMnemonic = false; + this.button7.UseVisualStyleBackColor = false; + // + // button6 + // + this.button6.BackColor = System.Drawing.SystemColors.Control; + this.button6.BackgroundImage = global::Remontor.Properties.Resources.close_min; + this.button6.FlatAppearance.BorderSize = 0; + this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button6.Location = new System.Drawing.Point(631, 0); + this.button6.Name = "button6"; + this.button6.Size = new System.Drawing.Size(21, 21); + this.button6.TabIndex = 6; + this.button6.UseVisualStyleBackColor = false; + // + // button5 + // + this.button5.BackColor = System.Drawing.SystemColors.Control; + this.button5.BackgroundImage = global::Remontor.Properties.Resources.reconnect_min; + this.button5.FlatAppearance.BorderSize = 0; + this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button5.Location = new System.Drawing.Point(604, 0); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(21, 21); + this.button5.TabIndex = 5; + this.button5.UseVisualStyleBackColor = false; + // + // ShowBar + // + this.ShowBar.BackgroundImage = global::Remontor.Properties.Resources.up_min1; + this.ShowBar.FlatAppearance.BorderSize = 0; + this.ShowBar.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ShowBar.Location = new System.Drawing.Point(670, 0); + this.ShowBar.Name = "ShowBar"; + this.ShowBar.Size = new System.Drawing.Size(21, 21); + this.ShowBar.TabIndex = 1; + this.ShowBar.UseVisualStyleBackColor = true; + this.ShowBar.Click += new System.EventHandler(this.ShowBar_Click); + // + // NewBtn + // + this.NewBtn.BackColor = System.Drawing.Color.Transparent; + this.NewBtn.BackgroundImage = global::Remontor.Properties.Resources.connect_min; + this.NewBtn.FlatAppearance.BorderSize = 0; + this.NewBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.NewBtn.Location = new System.Drawing.Point(103, 0); + this.NewBtn.Margin = new System.Windows.Forms.Padding(10, 0, 10, 0); + this.NewBtn.Name = "NewBtn"; + this.NewBtn.Size = new System.Drawing.Size(21, 21); + this.NewBtn.TabIndex = 0; + this.NewBtn.UseVisualStyleBackColor = false; + this.NewBtn.Click += new System.EventHandler(this.NewBtn_Click); + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Controls.Add(this.button2); + this.flowLayoutPanel1.Controls.Add(this.button3); + this.flowLayoutPanel1.Controls.Add(this.button4); + this.flowLayoutPanel1.Controls.Add(this.button7); + this.flowLayoutPanel1.Controls.Add(this.NewBtn); + this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(601, 21); + this.flowLayoutPanel1.TabIndex = 8; + // + // BarSessionControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.flowLayoutPanel1); + this.Controls.Add(this.button6); + this.Controls.Add(this.button5); + this.Controls.Add(this.ShowBar); + this.Name = "BarSessionControl"; + this.Size = new System.Drawing.Size(694, 21); + this.flowLayoutPanel1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button NewBtn; + private System.Windows.Forms.Button ShowBar; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.Button button6; + private System.Windows.Forms.Button button7; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + } +} diff --git a/Remontor/BarSessionControl.cs b/Remontor/BarSessionControl.cs new file mode 100644 index 0000000..1ffc5e9 --- /dev/null +++ b/Remontor/BarSessionControl.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Resources; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Remontor +{ + public partial class BarSessionControl : UserControl + { + public delegate bool HideWors(); + public HideWors hideWors; + + public BarSessionControl() + { + InitializeComponent(); + } + + private void ShowBar_Click(object sender, EventArgs e) + { + if (!hideWors()) + { + ShowBar.BackgroundImage = global::Remontor.Properties.Resources.down_min11; + } + else + { + ShowBar.BackgroundImage = global::Remontor.Properties.Resources.up_min1; + } + } + + private void NewBtn_Click(object sender, EventArgs e) + { + Finder.Finder finder = new Finder.Finder(); + finder.ShowDialog(); + } + } +} diff --git a/Remontor/BarSessionControl.resx b/Remontor/BarSessionControl.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Remontor/BarSessionControl.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Remontor/Finder/Finder.Designer.cs b/Remontor/Finder/Finder.Designer.cs new file mode 100644 index 0000000..be79a21 --- /dev/null +++ b/Remontor/Finder/Finder.Designer.cs @@ -0,0 +1,186 @@ +namespace Remontor.Finder +{ + partial class Finder + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.textBox1 = new System.Windows.Forms.TextBox(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.sessionItemControl1 = new Remontor.SessionItemControl(); + this.sessionItemControl2 = new Remontor.SessionItemControl(); + this.sessionItemControl3 = new Remontor.SessionItemControl(); + this.sessionItemControl4 = new Remontor.SessionItemControl(); + this.sessionItemControl5 = new Remontor.SessionItemControl(); + this.sessionItemControl6 = new Remontor.SessionItemControl(); + this.sessionItemControl7 = new Remontor.SessionItemControl(); + this.sessionItemControl8 = new Remontor.SessionItemControl(); + this.sessionItemControl9 = new Remontor.SessionItemControl(); + this.label1 = new System.Windows.Forms.Label(); + this.ConnectBtn = new System.Windows.Forms.Button(); + this.flowLayoutPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(125, 12); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(328, 20); + this.textBox1.TabIndex = 0; + this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl1); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl2); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl3); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl4); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl5); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl6); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl7); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl8); + this.flowLayoutPanel1.Controls.Add(this.sessionItemControl9); + this.flowLayoutPanel1.Location = new System.Drawing.Point(12, 47); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(556, 391); + this.flowLayoutPanel1.TabIndex = 1; + // + // sessionItemControl1 + // + this.sessionItemControl1.Location = new System.Drawing.Point(3, 3); + this.sessionItemControl1.Name = "sessionItemControl1"; + this.sessionItemControl1.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl1.TabIndex = 0; + // + // sessionItemControl2 + // + this.sessionItemControl2.Location = new System.Drawing.Point(273, 3); + this.sessionItemControl2.Name = "sessionItemControl2"; + this.sessionItemControl2.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl2.TabIndex = 1; + // + // sessionItemControl3 + // + this.sessionItemControl3.Location = new System.Drawing.Point(3, 64); + this.sessionItemControl3.Name = "sessionItemControl3"; + this.sessionItemControl3.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl3.TabIndex = 2; + // + // sessionItemControl4 + // + this.sessionItemControl4.Location = new System.Drawing.Point(273, 64); + this.sessionItemControl4.Name = "sessionItemControl4"; + this.sessionItemControl4.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl4.TabIndex = 3; + // + // sessionItemControl5 + // + this.sessionItemControl5.Location = new System.Drawing.Point(3, 125); + this.sessionItemControl5.Name = "sessionItemControl5"; + this.sessionItemControl5.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl5.TabIndex = 4; + // + // sessionItemControl6 + // + this.sessionItemControl6.Location = new System.Drawing.Point(273, 125); + this.sessionItemControl6.Name = "sessionItemControl6"; + this.sessionItemControl6.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl6.TabIndex = 5; + // + // sessionItemControl7 + // + this.sessionItemControl7.Location = new System.Drawing.Point(3, 186); + this.sessionItemControl7.Name = "sessionItemControl7"; + this.sessionItemControl7.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl7.TabIndex = 6; + // + // sessionItemControl8 + // + this.sessionItemControl8.Location = new System.Drawing.Point(273, 186); + this.sessionItemControl8.Name = "sessionItemControl8"; + this.sessionItemControl8.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl8.TabIndex = 7; + // + // sessionItemControl9 + // + this.sessionItemControl9.Location = new System.Drawing.Point(3, 247); + this.sessionItemControl9.Name = "sessionItemControl9"; + this.sessionItemControl9.Size = new System.Drawing.Size(264, 55); + this.sessionItemControl9.TabIndex = 8; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(31, 15); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(88, 13); + this.label1.TabIndex = 2; + this.label1.Text = "Введите запрос"; + // + // ConnectBtn + // + this.ConnectBtn.Location = new System.Drawing.Point(459, 10); + this.ConnectBtn.Name = "ConnectBtn"; + this.ConnectBtn.Size = new System.Drawing.Size(91, 23); + this.ConnectBtn.TabIndex = 3; + this.ConnectBtn.Text = "Подключиться"; + this.ConnectBtn.UseVisualStyleBackColor = true; + // + // Finder + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(580, 450); + this.Controls.Add(this.ConnectBtn); + this.Controls.Add(this.label1); + this.Controls.Add(this.flowLayoutPanel1); + this.Controls.Add(this.textBox1); + this.Name = "Finder"; + this.Text = "Новое подключение"; + this.flowLayoutPanel1.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private SessionItemControl sessionItemControl1; + private SessionItemControl sessionItemControl2; + private SessionItemControl sessionItemControl3; + private SessionItemControl sessionItemControl4; + private SessionItemControl sessionItemControl5; + private SessionItemControl sessionItemControl6; + private SessionItemControl sessionItemControl7; + private SessionItemControl sessionItemControl8; + private SessionItemControl sessionItemControl9; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button ConnectBtn; + } +} \ No newline at end of file diff --git a/Remontor/Finder/Finder.cs b/Remontor/Finder/Finder.cs new file mode 100644 index 0000000..b57b7f0 --- /dev/null +++ b/Remontor/Finder/Finder.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Remontor.Finder +{ + public partial class Finder : Form + { + public Finder() + { + InitializeComponent(); + } + + private void textBox1_TextChanged(object sender, EventArgs e) + { + + } + } +} diff --git a/Remontor/Finder/Finder.resx b/Remontor/Finder/Finder.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Remontor/Finder/Finder.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Remontor/FlowContainer.Designer.cs b/Remontor/FlowContainer.Designer.cs new file mode 100644 index 0000000..732d912 --- /dev/null +++ b/Remontor/FlowContainer.Designer.cs @@ -0,0 +1,135 @@ +namespace Remontor +{ + partial class FlowContainer + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором компонентов + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.listBox1 = new System.Windows.Forms.ListBox(); + this.treeView1 = new System.Windows.Forms.TreeView(); + this.button2 = new System.Windows.Forms.Button(); + this.tableLayoutPanel1.SuspendLayout(); + this.SuspendLayout(); + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.BackColor = System.Drawing.SystemColors.Control; + this.tableLayoutPanel1.ColumnCount = 1; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.Controls.Add(this.button2, 0, 4); + this.tableLayoutPanel1.Controls.Add(this.treeView1, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.listBox1, 0, 3); + this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2); + this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 5; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 13F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 13F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(280, 781); + this.tableLayoutPanel1.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(67, 13); + this.label1.TabIndex = 2; + this.label1.Text = "Справочник"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(3, 375); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(120, 13); + this.label2.TabIndex = 3; + this.label2.Text = "История подключений"; + // + // listBox1 + // + this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.listBox1.FormattingEnabled = true; + this.listBox1.Location = new System.Drawing.Point(3, 391); + this.listBox1.Name = "listBox1"; + this.listBox1.Size = new System.Drawing.Size(274, 356); + this.listBox1.TabIndex = 1; + // + // treeView1 + // + this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.treeView1.Location = new System.Drawing.Point(3, 16); + this.treeView1.Name = "treeView1"; + this.treeView1.Size = new System.Drawing.Size(274, 356); + this.treeView1.TabIndex = 0; + // + // button2 + // + this.button2.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.button2.Location = new System.Drawing.Point(3, 753); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(274, 25); + this.button2.TabIndex = 5; + this.button2.Text = "Параметры"; + this.button2.UseVisualStyleBackColor = true; + // + // FlowContainer + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.Control; + this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.Controls.Add(this.tableLayoutPanel1); + this.Name = "FlowContainer"; + this.Size = new System.Drawing.Size(280, 781); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.TreeView treeView1; + private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + } +} diff --git a/Remontor/FlowContainer.cs b/Remontor/FlowContainer.cs new file mode 100644 index 0000000..0e5b683 --- /dev/null +++ b/Remontor/FlowContainer.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Remontor +{ + public partial class FlowContainer : UserControl + { + private bool Showed = true; + private Size NormalSize; + public FlowContainer() + { + InitializeComponent(); + NormalSize = this.Size; + } + + public bool HideBar() + { + this.Visible =! this.Visible; + return this.Visible; + } + + + private void flowLayoutPanel1_Paint(object sender, PaintEventArgs e) + { + + } + } +} diff --git a/Remontor/FlowContainer.resx b/Remontor/FlowContainer.resx new file mode 100644 index 0000000..c83e356 --- /dev/null +++ b/Remontor/FlowContainer.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + \ No newline at end of file diff --git a/Remontor/Form1.Designer.cs b/Remontor/Form1.Designer.cs index 8a023c7..db4bc85 100644 --- a/Remontor/Form1.Designer.cs +++ b/Remontor/Form1.Designer.cs @@ -28,135 +28,53 @@ /// private void InitializeComponent() { - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.listBox1 = new System.Windows.Forms.ListBox(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel2 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.treeView1 = new System.Windows.Forms.TreeView(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.panel1.SuspendLayout(); + this.barSessionControl1 = new Remontor.BarSessionControl(); + this.flowContainer1 = new Remontor.FlowContainer(); + this.label1 = new System.Windows.Forms.Label(); this.panel3.SuspendLayout(); this.SuspendLayout(); // - // splitContainer1 - // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.splitContainer2); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.panel1); - this.splitContainer1.Panel2.Controls.Add(this.panel3); - this.splitContainer1.Size = new System.Drawing.Size(1082, 718); - this.splitContainer1.SplitterDistance = 223; - this.splitContainer1.TabIndex = 0; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.listBox1); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.treeView1); - this.splitContainer2.Panel2.Controls.Add(this.button1); - this.splitContainer2.Panel2.Controls.Add(this.button2); - this.splitContainer2.Panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer2_Panel2_Paint); - this.splitContainer2.Size = new System.Drawing.Size(223, 718); - this.splitContainer2.SplitterDistance = 195; - this.splitContainer2.TabIndex = 2; - // - // listBox1 - // - this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill; - this.listBox1.FormattingEnabled = true; - this.listBox1.Location = new System.Drawing.Point(0, 0); - this.listBox1.Name = "listBox1"; - this.listBox1.Size = new System.Drawing.Size(223, 195); - this.listBox1.TabIndex = 0; - // - // button1 - // - this.button1.Location = new System.Drawing.Point(3, 411); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 48); - this.button1.TabIndex = 0; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // button2 - // - this.button2.Location = new System.Drawing.Point(84, 411); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(81, 48); - this.button2.TabIndex = 1; - this.button2.Text = "button2"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // - // panel1 - // - this.panel1.Controls.Add(this.panel2); - this.panel1.Location = new System.Drawing.Point(301, 157); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(458, 299); - this.panel1.TabIndex = 0; - // - // panel2 - // - this.panel2.Location = new System.Drawing.Point(-143, 330); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(388, 159); - this.panel2.TabIndex = 0; - // // panel3 // - this.panel3.Controls.Add(this.panel4); - this.panel3.Location = new System.Drawing.Point(75, 305); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(458, 299); - this.panel3.TabIndex = 1; - // - // panel4 - // - this.panel4.Location = new System.Drawing.Point(-143, 330); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(388, 159); - this.panel4.TabIndex = 0; - // - // treeView1 - // - this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.panel3.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.treeView1.Location = new System.Drawing.Point(0, 0); - this.treeView1.Name = "treeView1"; - this.treeView1.Size = new System.Drawing.Size(223, 405); - this.treeView1.TabIndex = 2; + this.panel3.Controls.Add(this.label1); + this.panel3.Location = new System.Drawing.Point(0, 1); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(1082, 717); + this.panel3.TabIndex = 1; + this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint); + // + // barSessionControl1 + // + this.barSessionControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.barSessionControl1.Location = new System.Drawing.Point(388, 0); + this.barSessionControl1.Name = "barSessionControl1"; + this.barSessionControl1.Size = new System.Drawing.Size(694, 21); + this.barSessionControl1.TabIndex = 1; + // + // flowContainer1 + // + this.flowContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.flowContainer1.BackColor = System.Drawing.Color.Transparent; + this.flowContainer1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.flowContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.flowContainer1.Location = new System.Drawing.Point(840, 21); + this.flowContainer1.Name = "flowContainer1"; + this.flowContainer1.Size = new System.Drawing.Size(245, 674); + this.flowContainer1.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(467, 361); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(151, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Нету активныйх соединений"; // // Form1 // @@ -164,37 +82,24 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ClientSize = new System.Drawing.Size(1082, 718); - this.Controls.Add(this.splitContainer1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Controls.Add(this.barSessionControl1); + this.Controls.Add(this.flowContainer1); + this.Controls.Add(this.panel3); this.Name = "Form1"; this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); this.Resize += new System.EventHandler(this.tabControl1_SizeChanged); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.panel1.ResumeLayout(false); this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); this.ResumeLayout(false); } #endregion - - private System.Windows.Forms.SplitContainer splitContainer1; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.ListBox listBox1; - private System.Windows.Forms.TreeView treeView1; + private FlowContainer flowContainer1; + private BarSessionControl barSessionControl1; + private System.Windows.Forms.Label label1; } } diff --git a/Remontor/Form1.cs b/Remontor/Form1.cs index 26ca8e0..b11c19d 100644 --- a/Remontor/Form1.cs +++ b/Remontor/Form1.cs @@ -37,23 +37,27 @@ namespace Remontor public Form1() { InitializeComponent(); - p1 = Process.Start("notepad"); - //Thread.Sleep(500); // Allow the process to open it's window - p1.WaitForInputIdle(); - SetParent(p1.MainWindowHandle, panel1.Handle); - SetWindowLong(p1.MainWindowHandle, GWL_STYLE, WS_VISIBLE); - MoveWindow(p1.MainWindowHandle, panel1.Bounds.X, panel1.Bounds.Y - 24, panel1.Bounds.Width, panel1.Bounds.Height, true); + barSessionControl1.hideWors = flowContainer1.HideBar; + + + + //p1 = Process.Start("notepad"); + ////Thread.Sleep(500); // Allow the process to open it's window + //p1.WaitForInputIdle(); + //SetParent(p1.MainWindowHandle, panel1.Handle); + //SetWindowLong(p1.MainWindowHandle, GWL_STYLE, WS_VISIBLE); + //MoveWindow(p1.MainWindowHandle, panel1.Bounds.X, panel1.Bounds.Y - 24, panel1.Bounds.Width, panel1.Bounds.Height, true); p = Process.Start("notepad"); //Thread.Sleep(500); // Allow the process to open it's window p.WaitForInputIdle(); SetParent(p.MainWindowHandle, panel3.Handle); SetWindowLong(p.MainWindowHandle, GWL_STYLE, WS_VISIBLE); - MoveWindow(p.MainWindowHandle, panel3.Bounds.X, panel3.Bounds.Y - 24, panel3.Bounds.Width, panel3.Bounds.Height, true); + MoveWindow(p.MainWindowHandle, panel3.Bounds.X, panel3.Bounds.Y, panel3.Bounds.Width, panel3.Bounds.Height, true); } private void button1_Click(object sender, EventArgs e) { - panel1.Visible =! panel1.Visible; + // panel1.Visible =! panel1.Visible; } private void button2_Click(object sender, EventArgs e) @@ -70,14 +74,29 @@ namespace Remontor private void tabControl1_SizeChanged(object sender, EventArgs e) { - MoveWindow(p1.MainWindowHandle, panel1.Bounds.X, panel1.Bounds.Y - 24, panel1.Bounds.Width, panel1.Bounds.Height, true); - MoveWindow(p.MainWindowHandle, panel3.Bounds.X, panel3.Bounds.Y - 24, panel3.Bounds.Width, panel3.Bounds.Height, true); + //MoveWindow(p1.MainWindowHandle, panel1.Bounds.X, panel1.Bounds.Y - 24, panel1.Bounds.Width, panel1.Bounds.Height, true); + MoveWindow(p.MainWindowHandle, panel3.Bounds.X, panel3.Bounds.Y, panel3.Bounds.Width, panel3.Bounds.Height, true); } private void splitContainer2_Panel2_Paint(object sender, PaintEventArgs e) { } + + private void panel3_Paint(object sender, PaintEventArgs e) + { + + } + + private void toolStripContainer1_ContentPanel_Load(object sender, EventArgs e) + { + + } + + private void Form1_Load(object sender, EventArgs e) + { + + } } } diff --git a/Remontor/Properties/Resources.Designer.cs b/Remontor/Properties/Resources.Designer.cs index 3b94ece..9f5fda3 100644 --- a/Remontor/Properties/Resources.Designer.cs +++ b/Remontor/Properties/Resources.Designer.cs @@ -1,71 +1,163 @@ //------------------------------------------------------------------------------ // -// Этот код создан программным средством. -// Версия среды выполнения: 4.0.30319.42000 +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 // -// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если -// код создан повторно. +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. // //------------------------------------------------------------------------------ -namespace Remontor.Properties -{ - - +namespace Remontor.Properties { + using System; + + /// - /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. + /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д. /// - // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder - // класс с помощью таких средств, как ResGen или Visual Studio. - // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen - // с параметром /str или заново постройте свой VS-проект. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + // Этот класс создан автоматически классом StronglyTypedResourceBuilder + // с помощью такого средства, как ResGen или Visual Studio. + // Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen + // с параметром /str или перестройте свой проект VS. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + internal class Resources { + private static global::System.Resources.ResourceManager resourceMan; - + private static global::System.Globalization.CultureInfo resourceCulture; - + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { + internal Resources() { } - + /// - /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. + /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Remontor.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } - + /// - /// Переопределяет свойство CurrentUICulture текущего потока для всех - /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. + /// Перезаписывает свойство CurrentUICulture текущего потока для всех + /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap apple_touch_icon { + get { + object obj = ResourceManager.GetObject("apple-touch-icon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close { + get { + object obj = ResourceManager.GetObject("close", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close_min { + get { + object obj = ResourceManager.GetObject("close_min", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap connect_min { + get { + object obj = ResourceManager.GetObject("connect_min", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap down_min { + get { + object obj = ResourceManager.GetObject("down_min", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap down_min1 { + get { + object obj = ResourceManager.GetObject("down_min1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap down_min11 { + get { + object obj = ResourceManager.GetObject("down_min11", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap reconnect { + get { + object obj = ResourceManager.GetObject("reconnect", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap reconnect_min { + get { + object obj = ResourceManager.GetObject("reconnect_min", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap up_min1 { + get { + object obj = ResourceManager.GetObject("up_min1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/Remontor/Properties/Resources.resx b/Remontor/Properties/Resources.resx index af7dbeb..8a0a8db 100644 --- a/Remontor/Properties/Resources.resx +++ b/Remontor/Properties/Resources.resx @@ -46,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Serialization.Formatters.Binary.BinaryFormatter + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -60,6 +60,7 @@ : and then encoded with base64 encoding. --> + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,40 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\reconnect.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\down_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\connect_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\reconnect_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\apple-touch-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\down_min11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\close_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\down_min1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\up_min1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Remontor/Remontor.csproj b/Remontor/Remontor.csproj index 8fd52c6..0954137 100644 --- a/Remontor/Remontor.csproj +++ b/Remontor/Remontor.csproj @@ -46,6 +46,24 @@ + + UserControl + + + BarSessionControl.cs + + + Form + + + Finder.cs + + + UserControl + + + FlowContainer.cs + Form @@ -54,6 +72,21 @@ + + UserControl + + + SessionItemControl.cs + + + BarSessionControl.cs + + + Finder.cs + + + FlowContainer.cs + Form1.cs @@ -65,7 +98,11 @@ True Resources.resx + True + + SessionItemControl.cs + SettingsSingleFileGenerator Settings.Designer.cs @@ -79,5 +116,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Remontor/Resources/apple-touch-icon.png b/Remontor/Resources/apple-touch-icon.png new file mode 100644 index 0000000..ad261d7 Binary files /dev/null and b/Remontor/Resources/apple-touch-icon.png differ diff --git a/Remontor/Resources/close.png b/Remontor/Resources/close.png new file mode 100644 index 0000000..0017bfe Binary files /dev/null and b/Remontor/Resources/close.png differ diff --git a/Remontor/Resources/close_min.png b/Remontor/Resources/close_min.png new file mode 100644 index 0000000..07a9ebf Binary files /dev/null and b/Remontor/Resources/close_min.png differ diff --git a/Remontor/Resources/connect_min.png b/Remontor/Resources/connect_min.png new file mode 100644 index 0000000..6ef9f78 Binary files /dev/null and b/Remontor/Resources/connect_min.png differ diff --git a/Remontor/Resources/down_min.png b/Remontor/Resources/down_min.png new file mode 100644 index 0000000..36b2a50 Binary files /dev/null and b/Remontor/Resources/down_min.png differ diff --git a/Remontor/Resources/down_min1.png b/Remontor/Resources/down_min1.png new file mode 100644 index 0000000..7e4cd51 Binary files /dev/null and b/Remontor/Resources/down_min1.png differ diff --git a/Remontor/Resources/down_min11.png b/Remontor/Resources/down_min11.png new file mode 100644 index 0000000..80cdf05 Binary files /dev/null and b/Remontor/Resources/down_min11.png differ diff --git a/Remontor/Resources/reconnect.png b/Remontor/Resources/reconnect.png new file mode 100644 index 0000000..cd31829 Binary files /dev/null and b/Remontor/Resources/reconnect.png differ diff --git a/Remontor/Resources/reconnect_min.png b/Remontor/Resources/reconnect_min.png new file mode 100644 index 0000000..24af551 Binary files /dev/null and b/Remontor/Resources/reconnect_min.png differ diff --git a/Remontor/Resources/up_min1.png b/Remontor/Resources/up_min1.png new file mode 100644 index 0000000..47d75b7 Binary files /dev/null and b/Remontor/Resources/up_min1.png differ diff --git a/Remontor/SessionItemControl.Designer.cs b/Remontor/SessionItemControl.Designer.cs new file mode 100644 index 0000000..315e9be --- /dev/null +++ b/Remontor/SessionItemControl.Designer.cs @@ -0,0 +1,97 @@ +namespace Remontor +{ + partial class SessionItemControl + { + /// + /// Обязательная переменная конструктора. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Освободить все используемые ресурсы. + /// + /// истинно, если управляемый ресурс должен быть удален; иначе ложно. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Код, автоматически созданный конструктором компонентов + + /// + /// Требуемый метод для поддержки конструктора — не изменяйте + /// содержимое этого метода с помощью редактора кода. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(57, 20); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(47, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Имя ПК"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(57, 33); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(38, 13); + this.label2.TabIndex = 2; + this.label2.Text = "Логин"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(57, 7); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(141, 13); + this.label3.TabIndex = 3; + this.label3.Text = "Котов Кирилл Николаевич"; + // + // pictureBox1 + // + this.pictureBox1.Image = global::Remontor.Properties.Resources.apple_touch_icon; + this.pictureBox1.Location = new System.Drawing.Point(3, 3); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(48, 48); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // SessionItemControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.pictureBox1); + this.Name = "SessionItemControl"; + this.Size = new System.Drawing.Size(264, 55); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + } +} diff --git a/Remontor/SessionItemControl.cs b/Remontor/SessionItemControl.cs new file mode 100644 index 0000000..307211c --- /dev/null +++ b/Remontor/SessionItemControl.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Remontor +{ + public partial class SessionItemControl : UserControl + { + public SessionItemControl() + { + InitializeComponent(); + } + } +} diff --git a/Remontor/SessionItemControl.resx b/Remontor/SessionItemControl.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Remontor/SessionItemControl.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Remontor/bin/Debug/Remontor.exe b/Remontor/bin/Debug/Remontor.exe index 8caab04..4b1a72b 100644 Binary files a/Remontor/bin/Debug/Remontor.exe and b/Remontor/bin/Debug/Remontor.exe differ diff --git a/Remontor/bin/Debug/Remontor.pdb b/Remontor/bin/Debug/Remontor.pdb index 7c48d3f..9a7ef80 100644 Binary files a/Remontor/bin/Debug/Remontor.pdb and b/Remontor/bin/Debug/Remontor.pdb differ diff --git a/Remontor/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Remontor/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 25da147..37ae34f 100644 Binary files a/Remontor/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Remontor/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Remontor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Remontor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 273afe7..26cf969 100644 Binary files a/Remontor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Remontor/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Remontor/obj/Debug/Remontor.BarSessionControl.resources b/Remontor/obj/Debug/Remontor.BarSessionControl.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Remontor/obj/Debug/Remontor.BarSessionControl.resources differ diff --git a/Remontor/obj/Debug/Remontor.Finder.Finder.resources b/Remontor/obj/Debug/Remontor.Finder.Finder.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Remontor/obj/Debug/Remontor.Finder.Finder.resources differ diff --git a/Remontor/obj/Debug/Remontor.FlowContainer.resources b/Remontor/obj/Debug/Remontor.FlowContainer.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Remontor/obj/Debug/Remontor.FlowContainer.resources differ diff --git a/Remontor/obj/Debug/Remontor.Properties.Resources.resources b/Remontor/obj/Debug/Remontor.Properties.Resources.resources index 6c05a97..e081f0f 100644 Binary files a/Remontor/obj/Debug/Remontor.Properties.Resources.resources and b/Remontor/obj/Debug/Remontor.Properties.Resources.resources differ diff --git a/Remontor/obj/Debug/Remontor.SessionItemControl.resources b/Remontor/obj/Debug/Remontor.SessionItemControl.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Remontor/obj/Debug/Remontor.SessionItemControl.resources differ diff --git a/Remontor/obj/Debug/Remontor.csproj.CoreCompileInputs.cache b/Remontor/obj/Debug/Remontor.csproj.CoreCompileInputs.cache index b5ede7c..344d54f 100644 --- a/Remontor/obj/Debug/Remontor.csproj.CoreCompileInputs.cache +++ b/Remontor/obj/Debug/Remontor.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -e91224c8c3c20a37d9f3cbe81946241a8755950c +5dbc82744c739a57c33771a80f9ca9244fbf42fb diff --git a/Remontor/obj/Debug/Remontor.csproj.FileListAbsolute.txt b/Remontor/obj/Debug/Remontor.csproj.FileListAbsolute.txt index be2b441..508c30c 100644 --- a/Remontor/obj/Debug/Remontor.csproj.FileListAbsolute.txt +++ b/Remontor/obj/Debug/Remontor.csproj.FileListAbsolute.txt @@ -9,3 +9,7 @@ C:\Users\Владимир\source\repos\Remontor\Remontor\bin\Debug\Remontor.exe C:\Users\Владимир\source\repos\Remontor\Remontor\bin\Debug\Remontor.pdb C:\Users\Владимир\source\repos\Remontor\Remontor\obj\Debug\Remontor.exe C:\Users\Владимир\source\repos\Remontor\Remontor\obj\Debug\Remontor.pdb +C:\Users\Владимир\source\repos\Remontor\Remontor\obj\Debug\Remontor.FlowContainer.resources +C:\Users\Владимир\source\repos\Remontor\Remontor\obj\Debug\Remontor.SessionItemControl.resources +C:\Users\Владимир\source\repos\Remontor\Remontor\obj\Debug\Remontor.BarSessionControl.resources +C:\Users\Владимир\source\repos\Remontor\Remontor\obj\Debug\Remontor.Finder.Finder.resources diff --git a/Remontor/obj/Debug/Remontor.csproj.GenerateResource.cache b/Remontor/obj/Debug/Remontor.csproj.GenerateResource.cache index 6806ab6..094e9a5 100644 Binary files a/Remontor/obj/Debug/Remontor.csproj.GenerateResource.cache and b/Remontor/obj/Debug/Remontor.csproj.GenerateResource.cache differ diff --git a/Remontor/obj/Debug/Remontor.exe b/Remontor/obj/Debug/Remontor.exe index 8caab04..4b1a72b 100644 Binary files a/Remontor/obj/Debug/Remontor.exe and b/Remontor/obj/Debug/Remontor.exe differ diff --git a/Remontor/obj/Debug/Remontor.pdb b/Remontor/obj/Debug/Remontor.pdb index 7c48d3f..9a7ef80 100644 Binary files a/Remontor/obj/Debug/Remontor.pdb and b/Remontor/obj/Debug/Remontor.pdb differ diff --git a/Remontor/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/Remontor/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..ff11fbf Binary files /dev/null and b/Remontor/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ