Browse Source

продолжение

Ivan 1 year ago
parent
commit
00ee2a7007

+ 8 - 8
Sseessiioonn1/Form1.Designer.cs

@@ -71,24 +71,24 @@
             // 
             // Textbox_login
             // 
-            this.Textbox_login.Location = new System.Drawing.Point(175, 298);
+            this.Textbox_login.Location = new System.Drawing.Point(151, 298);
             this.Textbox_login.Name = "Textbox_login";
-            this.Textbox_login.Size = new System.Drawing.Size(190, 22);
+            this.Textbox_login.Size = new System.Drawing.Size(242, 22);
             this.Textbox_login.TabIndex = 3;
             // 
             // Textbox_password
             // 
-            this.Textbox_password.Location = new System.Drawing.Point(175, 343);
+            this.Textbox_password.Location = new System.Drawing.Point(151, 343);
             this.Textbox_password.Name = "Textbox_password";
-            this.Textbox_password.Size = new System.Drawing.Size(190, 22);
+            this.Textbox_password.Size = new System.Drawing.Size(242, 22);
             this.Textbox_password.TabIndex = 4;
             // 
             // Login_button
             // 
             this.Login_button.BackColor = System.Drawing.Color.PeachPuff;
-            this.Login_button.Location = new System.Drawing.Point(140, 416);
+            this.Login_button.Location = new System.Drawing.Point(151, 416);
             this.Login_button.Name = "Login_button";
-            this.Login_button.Size = new System.Drawing.Size(87, 29);
+            this.Login_button.Size = new System.Drawing.Size(101, 48);
             this.Login_button.TabIndex = 5;
             this.Login_button.Text = "Login";
             this.Login_button.UseVisualStyleBackColor = false;
@@ -97,9 +97,9 @@
             // Password_button
             // 
             this.Password_button.BackColor = System.Drawing.Color.PeachPuff;
-            this.Password_button.Location = new System.Drawing.Point(291, 415);
+            this.Password_button.Location = new System.Drawing.Point(292, 416);
             this.Password_button.Name = "Password_button";
-            this.Password_button.Size = new System.Drawing.Size(87, 29);
+            this.Password_button.Size = new System.Drawing.Size(101, 48);
             this.Password_button.TabIndex = 6;
             this.Password_button.Text = "Exit";
             this.Password_button.UseVisualStyleBackColor = false;

+ 71 - 1
Sseessiioonn1/Main_form.Designer.cs

@@ -28,20 +28,90 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
+            this.listBox1 = new System.Windows.Forms.ListBox();
+            this.session_01DataSet = new Sseessiioonn1.session_01DataSet();
+            this.serviceBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.serviceTableAdapter = new Sseessiioonn1.session_01DataSetTableAdapters.ServiceTableAdapter();
+            this.label1 = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
+            ((System.ComponentModel.ISupportInitialize)(this.session_01DataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.serviceBindingSource)).BeginInit();
             this.SuspendLayout();
             // 
+            // listBox1
+            // 
+            this.listBox1.DataSource = this.serviceBindingSource;
+            this.listBox1.DisplayMember = "Title";
+            this.listBox1.FormattingEnabled = true;
+            this.listBox1.ItemHeight = 16;
+            this.listBox1.Location = new System.Drawing.Point(42, 169);
+            this.listBox1.Name = "listBox1";
+            this.listBox1.Size = new System.Drawing.Size(418, 68);
+            this.listBox1.TabIndex = 0;
+            this.listBox1.ValueMember = "Title";
+            // 
+            // session_01DataSet
+            // 
+            this.session_01DataSet.DataSetName = "session_01DataSet";
+            this.session_01DataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // serviceBindingSource
+            // 
+            this.serviceBindingSource.DataMember = "Service";
+            this.serviceBindingSource.DataSource = this.session_01DataSet;
+            // 
+            // serviceTableAdapter
+            // 
+            this.serviceTableAdapter.ClearBeforeFill = true;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Comic Sans MS", 13.8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(36, 73);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(424, 32);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Услуги предоставляемые в салоне";
+            // 
+            // button1
+            // 
+            this.button1.BackColor = System.Drawing.Color.PeachPuff;
+            this.button1.Location = new System.Drawing.Point(217, 396);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(91, 44);
+            this.button1.TabIndex = 2;
+            this.button1.Text = "button1";
+            this.button1.UseVisualStyleBackColor = false;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
             // Glavnoya_form
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.SeaShell;
-            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.ClientSize = new System.Drawing.Size(512, 493);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.listBox1);
             this.Name = "Glavnoya_form";
             this.Text = "Main_form";
+            this.Load += new System.EventHandler(this.Glavnoya_form_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.session_01DataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.serviceBindingSource)).EndInit();
             this.ResumeLayout(false);
+            this.PerformLayout();
 
         }
 
         #endregion
+
+        private System.Windows.Forms.ListBox listBox1;
+        private session_01DataSet session_01DataSet;
+        private System.Windows.Forms.BindingSource serviceBindingSource;
+        private session_01DataSetTableAdapters.ServiceTableAdapter serviceTableAdapter;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Button button1;
     }
 }

+ 15 - 0
Sseessiioonn1/Main_form.cs

@@ -4,6 +4,7 @@ using System.ComponentModel;
 using System.Data;
 using System.Drawing;
 using System.Linq;
+using System.Security.Cryptography;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
@@ -16,5 +17,19 @@ namespace Sseessiioonn1
         {
             InitializeComponent();
         }
+
+        private void Glavnoya_form_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "session_01DataSet.Service". При необходимости она может быть перемещена или удалена.
+            this.serviceTableAdapter.Fill(this.session_01DataSet.Service);
+
+        }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+            Main_Form frn = new Main_Form();
+            frn.Show();
+            this.Hide();
+        }
     }
 }

+ 12 - 0
Sseessiioonn1/Main_form.resx

@@ -117,4 +117,16 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="serviceBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>199, 17</value>
+  </metadata>
+  <metadata name="session_01DataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="serviceBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>199, 17</value>
+  </metadata>
+  <metadata name="serviceTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>400, 17</value>
+  </metadata>
 </root>