make the dashboard a bit smaller

This commit is contained in:
Andreas Zweili 2017-08-28 10:54:16 +02:00
parent e1f734b2b3
commit af517873d1
3 changed files with 334 additions and 320 deletions

View File

@ -28,204 +28,218 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.LocationListBox = new System.Windows.Forms.ListBox(); this.LocationListBox = new System.Windows.Forms.ListBox();
this.LocationTextBox = new System.Windows.Forms.TextBox(); this.LocationTextBox = new System.Windows.Forms.TextBox();
this.LocationLabel = new System.Windows.Forms.Label(); this.LocationLabel = new System.Windows.Forms.Label();
this.LocationSearchButton = new System.Windows.Forms.Button(); this.LocationSearchButton = new System.Windows.Forms.Button();
this.RentDateLabel = new System.Windows.Forms.Label(); this.RentDateLabel = new System.Windows.Forms.Label();
this.PaymentDateLabel = new System.Windows.Forms.Label(); this.PaymentDateLabel = new System.Windows.Forms.Label();
this.RentInsertButton = new System.Windows.Forms.Button(); this.RentInsertButton = new System.Windows.Forms.Button();
this.RentDateTimePicker = new System.Windows.Forms.DateTimePicker(); this.RentDateTimePicker = new System.Windows.Forms.DateTimePicker();
this.ADDLocationListBox = new System.Windows.Forms.ListBox(); this.ADDLocationListBox = new System.Windows.Forms.ListBox();
this.ADDLocationLabel = new System.Windows.Forms.Label(); this.ADDLocationLabel = new System.Windows.Forms.Label();
this.ADDLocationButton = new System.Windows.Forms.Button(); this.ADDLocationButton = new System.Windows.Forms.Button();
this.UserDisplaylistBox = new System.Windows.Forms.ListBox(); this.UserDisplaylistBox = new System.Windows.Forms.ListBox();
this.UserDisplayLabel = new System.Windows.Forms.Label(); this.UserDisplayLabel = new System.Windows.Forms.Label();
this.ShowRentListBox = new System.Windows.Forms.ListBox(); this.ShowRentListBox = new System.Windows.Forms.ListBox();
this.ShowRentLabel = new System.Windows.Forms.Label(); this.ShowRentLabel = new System.Windows.Forms.Label();
this.ShowRentButton = new System.Windows.Forms.Button(); this.ShowRentButton = new System.Windows.Forms.Button();
this.RentedTextBox = new System.Windows.Forms.TextBox(); this.RentedTextBox = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// LocationListBox // LocationListBox
// //
this.LocationListBox.FormattingEnabled = true; this.LocationListBox.FormattingEnabled = true;
this.LocationListBox.ItemHeight = 16; this.LocationListBox.Location = new System.Drawing.Point(9, 118);
this.LocationListBox.Location = new System.Drawing.Point(12, 145); this.LocationListBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.LocationListBox.Name = "LocationListBox"; this.LocationListBox.Name = "LocationListBox";
this.LocationListBox.Size = new System.Drawing.Size(196, 244); this.LocationListBox.Size = new System.Drawing.Size(148, 199);
this.LocationListBox.TabIndex = 0; this.LocationListBox.TabIndex = 0;
// //
// LocationTextBox // LocationTextBox
// //
this.LocationTextBox.Location = new System.Drawing.Point(12, 93); this.LocationTextBox.Location = new System.Drawing.Point(9, 76);
this.LocationTextBox.Name = "LocationTextBox"; this.LocationTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.LocationTextBox.Size = new System.Drawing.Size(100, 22); this.LocationTextBox.Name = "LocationTextBox";
this.LocationTextBox.TabIndex = 1; this.LocationTextBox.Size = new System.Drawing.Size(76, 20);
// this.LocationTextBox.TabIndex = 1;
// LocationLabel //
// // LocationLabel
this.LocationLabel.AutoSize = true; //
this.LocationLabel.Location = new System.Drawing.Point(12, 53); this.LocationLabel.AutoSize = true;
this.LocationLabel.Name = "LocationLabel"; this.LocationLabel.Location = new System.Drawing.Point(9, 43);
this.LocationLabel.Size = new System.Drawing.Size(135, 17); this.LocationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.LocationLabel.TabIndex = 2; this.LocationLabel.Name = "LocationLabel";
this.LocationLabel.Text = "Locations-Searched"; this.LocationLabel.Size = new System.Drawing.Size(102, 13);
// this.LocationLabel.TabIndex = 2;
// LocationSearchButton this.LocationLabel.Text = "Locations-Searched";
// //
this.LocationSearchButton.Location = new System.Drawing.Point(118, 92); // LocationSearchButton
this.LocationSearchButton.Name = "LocationSearchButton"; //
this.LocationSearchButton.Size = new System.Drawing.Size(75, 23); this.LocationSearchButton.Location = new System.Drawing.Point(88, 75);
this.LocationSearchButton.TabIndex = 3; this.LocationSearchButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.LocationSearchButton.Text = "Search"; this.LocationSearchButton.Name = "LocationSearchButton";
this.LocationSearchButton.UseVisualStyleBackColor = true; this.LocationSearchButton.Size = new System.Drawing.Size(56, 19);
this.LocationSearchButton.Click += new System.EventHandler(this.LocationSearchButton_Click); this.LocationSearchButton.TabIndex = 3;
// this.LocationSearchButton.Text = "Search";
// RentDateLabel this.LocationSearchButton.UseVisualStyleBackColor = true;
// this.LocationSearchButton.Click += new System.EventHandler(this.LocationSearchButton_Click);
this.RentDateLabel.AutoSize = true; //
this.RentDateLabel.Location = new System.Drawing.Point(250, 98); // RentDateLabel
this.RentDateLabel.Name = "RentDateLabel"; //
this.RentDateLabel.Size = new System.Drawing.Size(73, 17); this.RentDateLabel.AutoSize = true;
this.RentDateLabel.TabIndex = 20; this.RentDateLabel.Location = new System.Drawing.Point(188, 80);
this.RentDateLabel.Text = "Rent-Date"; this.RentDateLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
// this.RentDateLabel.Name = "RentDateLabel";
// PaymentDateLabel this.RentDateLabel.Size = new System.Drawing.Size(56, 13);
// this.RentDateLabel.TabIndex = 20;
this.PaymentDateLabel.AutoSize = true; this.RentDateLabel.Text = "Rent-Date";
this.PaymentDateLabel.Location = new System.Drawing.Point(500, 258); //
this.PaymentDateLabel.Name = "PaymentDateLabel"; // PaymentDateLabel
this.PaymentDateLabel.Size = new System.Drawing.Size(0, 17); //
this.PaymentDateLabel.TabIndex = 18; this.PaymentDateLabel.AutoSize = true;
// this.PaymentDateLabel.Location = new System.Drawing.Point(375, 210);
// RentInsertButton this.PaymentDateLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
// this.PaymentDateLabel.Name = "PaymentDateLabel";
this.RentInsertButton.Location = new System.Drawing.Point(470, 395); this.PaymentDateLabel.Size = new System.Drawing.Size(0, 13);
this.RentInsertButton.Name = "RentInsertButton"; this.PaymentDateLabel.TabIndex = 18;
this.RentInsertButton.Size = new System.Drawing.Size(101, 23); //
this.RentInsertButton.TabIndex = 17; // RentInsertButton
this.RentInsertButton.Text = "Rent"; //
this.RentInsertButton.UseVisualStyleBackColor = true; this.RentInsertButton.Location = new System.Drawing.Point(352, 321);
this.RentInsertButton.Click += new System.EventHandler(this.RentInsertButton_Click); this.RentInsertButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
// this.RentInsertButton.Name = "RentInsertButton";
// RentDateTimePicker this.RentInsertButton.Size = new System.Drawing.Size(76, 19);
// this.RentInsertButton.TabIndex = 17;
this.RentDateTimePicker.Location = new System.Drawing.Point(329, 94); this.RentInsertButton.Text = "Rent";
this.RentDateTimePicker.Name = "RentDateTimePicker"; this.RentInsertButton.UseVisualStyleBackColor = true;
this.RentDateTimePicker.Size = new System.Drawing.Size(242, 22); this.RentInsertButton.Click += new System.EventHandler(this.RentInsertButton_Click);
this.RentDateTimePicker.TabIndex = 21; //
// // RentDateTimePicker
// ADDLocationListBox //
// this.RentDateTimePicker.Location = new System.Drawing.Point(247, 76);
this.ADDLocationListBox.FormattingEnabled = true; this.RentDateTimePicker.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ADDLocationListBox.ItemHeight = 16; this.RentDateTimePicker.Name = "RentDateTimePicker";
this.ADDLocationListBox.Location = new System.Drawing.Point(329, 145); this.RentDateTimePicker.Size = new System.Drawing.Size(182, 20);
this.ADDLocationListBox.Name = "ADDLocationListBox"; this.RentDateTimePicker.TabIndex = 21;
this.ADDLocationListBox.Size = new System.Drawing.Size(242, 244); //
this.ADDLocationListBox.TabIndex = 23; // ADDLocationListBox
// //
// ADDLocationLabel this.ADDLocationListBox.FormattingEnabled = true;
// this.ADDLocationListBox.Location = new System.Drawing.Point(247, 118);
this.ADDLocationLabel.AutoSize = true; this.ADDLocationListBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ADDLocationLabel.Location = new System.Drawing.Point(326, 53); this.ADDLocationListBox.Name = "ADDLocationListBox";
this.ADDLocationLabel.Name = "ADDLocationLabel"; this.ADDLocationListBox.Size = new System.Drawing.Size(182, 199);
this.ADDLocationLabel.Size = new System.Drawing.Size(115, 17); this.ADDLocationListBox.TabIndex = 23;
this.ADDLocationLabel.TabIndex = 24; //
this.ADDLocationLabel.Text = "Locations-Added"; // ADDLocationLabel
// //
// ADDLocationButton this.ADDLocationLabel.AutoSize = true;
// this.ADDLocationLabel.Location = new System.Drawing.Point(244, 43);
this.ADDLocationButton.Location = new System.Drawing.Point(228, 183); this.ADDLocationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.ADDLocationButton.Name = "ADDLocationButton"; this.ADDLocationLabel.Name = "ADDLocationLabel";
this.ADDLocationButton.Size = new System.Drawing.Size(75, 23); this.ADDLocationLabel.Size = new System.Drawing.Size(87, 13);
this.ADDLocationButton.TabIndex = 25; this.ADDLocationLabel.TabIndex = 24;
this.ADDLocationButton.Text = "ADD"; this.ADDLocationLabel.Text = "Locations-Added";
this.ADDLocationButton.UseVisualStyleBackColor = true; //
this.ADDLocationButton.Click += new System.EventHandler(this.ADDLocationButton_Click); // ADDLocationButton
// //
// UserDisplaylistBox this.ADDLocationButton.Location = new System.Drawing.Point(171, 149);
// this.ADDLocationButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.UserDisplaylistBox.FormattingEnabled = true; this.ADDLocationButton.Name = "ADDLocationButton";
this.UserDisplaylistBox.ItemHeight = 16; this.ADDLocationButton.Size = new System.Drawing.Size(56, 19);
this.UserDisplaylistBox.Location = new System.Drawing.Point(133, 13); this.ADDLocationButton.TabIndex = 25;
this.UserDisplaylistBox.Name = "UserDisplaylistBox"; this.ADDLocationButton.Text = "ADD";
this.UserDisplaylistBox.Size = new System.Drawing.Size(257, 20); this.ADDLocationButton.UseVisualStyleBackColor = true;
this.UserDisplaylistBox.TabIndex = 26; this.ADDLocationButton.Click += new System.EventHandler(this.ADDLocationButton_Click);
// //
// UserDisplayLabel // UserDisplaylistBox
// //
this.UserDisplayLabel.AutoSize = true; this.UserDisplaylistBox.FormattingEnabled = true;
this.UserDisplayLabel.Location = new System.Drawing.Point(12, 13); this.UserDisplaylistBox.Location = new System.Drawing.Point(100, 11);
this.UserDisplayLabel.Name = "UserDisplayLabel"; this.UserDisplaylistBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.UserDisplayLabel.Size = new System.Drawing.Size(94, 17); this.UserDisplaylistBox.Name = "UserDisplaylistBox";
this.UserDisplayLabel.TabIndex = 27; this.UserDisplaylistBox.Size = new System.Drawing.Size(194, 17);
this.UserDisplayLabel.Text = "Logged in as:"; this.UserDisplaylistBox.TabIndex = 26;
// //
// ShowRentListBox // UserDisplayLabel
// //
this.ShowRentListBox.FormattingEnabled = true; this.UserDisplayLabel.AutoSize = true;
this.ShowRentListBox.ItemHeight = 16; this.UserDisplayLabel.Location = new System.Drawing.Point(9, 11);
this.ShowRentListBox.Location = new System.Drawing.Point(675, 145); this.UserDisplayLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.ShowRentListBox.Name = "ShowRentListBox"; this.UserDisplayLabel.Name = "UserDisplayLabel";
this.ShowRentListBox.Size = new System.Drawing.Size(629, 244); this.UserDisplayLabel.Size = new System.Drawing.Size(71, 13);
this.ShowRentListBox.TabIndex = 28; this.UserDisplayLabel.TabIndex = 27;
this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged); this.UserDisplayLabel.Text = "Logged in as:";
// //
// ShowRentLabel // ShowRentListBox
// //
this.ShowRentLabel.AutoSize = true; this.ShowRentListBox.FormattingEnabled = true;
this.ShowRentLabel.Location = new System.Drawing.Point(672, 53); this.ShowRentListBox.Location = new System.Drawing.Point(473, 118);
this.ShowRentLabel.Name = "ShowRentLabel"; this.ShowRentListBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ShowRentLabel.Size = new System.Drawing.Size(120, 17); this.ShowRentListBox.Name = "ShowRentListBox";
this.ShowRentLabel.TabIndex = 29; this.ShowRentListBox.Size = new System.Drawing.Size(367, 199);
this.ShowRentLabel.Text = "Rented-Locations"; this.ShowRentListBox.TabIndex = 28;
// this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged);
// ShowRentButton //
// // ShowRentLabel
this.ShowRentButton.Location = new System.Drawing.Point(781, 92); //
this.ShowRentButton.Name = "ShowRentButton"; this.ShowRentLabel.AutoSize = true;
this.ShowRentButton.Size = new System.Drawing.Size(75, 23); this.ShowRentLabel.Location = new System.Drawing.Point(470, 43);
this.ShowRentButton.TabIndex = 30; this.ShowRentLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.ShowRentButton.Text = "Show"; this.ShowRentLabel.Name = "ShowRentLabel";
this.ShowRentButton.UseVisualStyleBackColor = true; this.ShowRentLabel.Size = new System.Drawing.Size(91, 13);
this.ShowRentButton.Click += new System.EventHandler(this.ShowRentButton_Click); this.ShowRentLabel.TabIndex = 29;
// this.ShowRentLabel.Text = "Rented-Locations";
// RentedTextBox //
// // ShowRentButton
this.RentedTextBox.Location = new System.Drawing.Point(675, 93); //
this.RentedTextBox.Name = "RentedTextBox"; this.ShowRentButton.Location = new System.Drawing.Point(553, 77);
this.RentedTextBox.Size = new System.Drawing.Size(100, 22); this.ShowRentButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.RentedTextBox.TabIndex = 31; this.ShowRentButton.Name = "ShowRentButton";
// this.ShowRentButton.Size = new System.Drawing.Size(56, 19);
// Dashboard this.ShowRentButton.TabIndex = 30;
// this.ShowRentButton.Text = "Show";
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.ShowRentButton.UseVisualStyleBackColor = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ShowRentButton.Click += new System.EventHandler(this.ShowRentButton_Click);
this.ClientSize = new System.Drawing.Size(1465, 483); //
this.Controls.Add(this.RentedTextBox); // RentedTextBox
this.Controls.Add(this.ShowRentButton); //
this.Controls.Add(this.ShowRentLabel); this.RentedTextBox.Location = new System.Drawing.Point(473, 77);
this.Controls.Add(this.ShowRentListBox); this.RentedTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Controls.Add(this.UserDisplayLabel); this.RentedTextBox.Name = "RentedTextBox";
this.Controls.Add(this.UserDisplaylistBox); this.RentedTextBox.Size = new System.Drawing.Size(76, 20);
this.Controls.Add(this.ADDLocationButton); this.RentedTextBox.TabIndex = 31;
this.Controls.Add(this.ADDLocationLabel); //
this.Controls.Add(this.ADDLocationListBox); // Dashboard
this.Controls.Add(this.RentDateTimePicker); //
this.Controls.Add(this.RentDateLabel); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.Controls.Add(this.PaymentDateLabel); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.RentInsertButton); this.ClientSize = new System.Drawing.Size(858, 392);
this.Controls.Add(this.LocationSearchButton); this.Controls.Add(this.RentedTextBox);
this.Controls.Add(this.LocationLabel); this.Controls.Add(this.ShowRentButton);
this.Controls.Add(this.LocationTextBox); this.Controls.Add(this.ShowRentLabel);
this.Controls.Add(this.LocationListBox); this.Controls.Add(this.ShowRentListBox);
this.Name = "Dashboard"; this.Controls.Add(this.UserDisplayLabel);
this.Text = "Dashboard"; this.Controls.Add(this.UserDisplaylistBox);
this.Load += new System.EventHandler(this.Dashboard_Load); this.Controls.Add(this.ADDLocationButton);
this.ResumeLayout(false); this.Controls.Add(this.ADDLocationLabel);
this.PerformLayout(); this.Controls.Add(this.ADDLocationListBox);
this.Controls.Add(this.RentDateTimePicker);
this.Controls.Add(this.RentDateLabel);
this.Controls.Add(this.PaymentDateLabel);
this.Controls.Add(this.RentInsertButton);
this.Controls.Add(this.LocationSearchButton);
this.Controls.Add(this.LocationLabel);
this.Controls.Add(this.LocationTextBox);
this.Controls.Add(this.LocationListBox);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "Dashboard";
this.Text = "Dashboard";
this.Load += new System.EventHandler(this.Dashboard_Load);
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion

View File

@ -1,120 +1,120 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
</root> </root>

View File

@ -62,10 +62,10 @@ namespace db_AI_4
{ {
List<GetRents> rents = new List<GetRents>(); List<GetRents> rents = new List<GetRents>();
rents.Add(new GetRents { rent_date = RentDate, member_id = MemberID, rent_price_id = RentPriceID, }); rents.Add(new GetRents { rent_date = RentDate, member_id = 1, rent_price_id = RentPriceID, location_id = 1});
connection.Execute("INSERT INTO dbo.rents (rent_date, member_id, rent_price_id)" + connection.Execute("INSERT INTO dbo.rents (rent_date, member_id, rent_price_id, location_id)" +
" VALUES (@rent_date, @member_id, @rent_price_id )", rents); " VALUES (@rent_date, @member_id, @rent_price_id, @location_id )", rents);
} }
} }
// Insert Rents into Database end // Insert Rents into Database end