Compare commits

...

58 Commits
izy ... master

Author SHA1 Message Date
Andreas Zweili 53db026b87 update the setup instructions 2017-09-24 13:21:41 +02:00
Andreas Zweili 16bd543124 move the csharp code to a better location 2017-09-24 13:12:02 +02:00
Andreas Zweili 4c60d1f219 fix a typo 2017-09-03 21:22:08 +02:00
Andreas Zweili 3bb47c7c1d delete trailing whitespace 2017-09-03 21:21:17 +02:00
unknown cfdba71b15 Grammatik Kontrolle des gesamten Dokumentes 2017-09-03 17:33:40 +02:00
Andreas Zweili 2af14622c2 escape an underscore 2017-09-02 16:43:36 +02:00
Andreas Zweili 430ed02b0c extend the documentation 2017-09-02 16:42:00 +02:00
Andreas Zweili f5bbdb796d remove trailing whitespace 2017-09-02 16:38:16 +02:00
Andreas Zweili bec8fae9b2 replace all the uml diagrammes with a higher res. version 2017-08-31 19:20:08 +02:00
Andreas Zweili f54e46ff5f Revert "indent code block"
This reverts commit 3eaacbd150.
2017-08-31 12:26:07 +02:00
Andreas Zweili 3eaacbd150 indent code block 2017-08-31 12:25:04 +02:00
Andreas Zweili 572289ae5d change list to code block
The unordered lists for some reason gets coverted to an ordered list.
Im too lazy to look at this.
2017-08-31 12:23:43 +02:00
Andreas Zweili e97b1e2cc6 change list sign 2017-08-31 12:21:59 +02:00
Andreas Zweili 3ddf3b8ea8 add installation instructions 2017-08-31 12:21:02 +02:00
Andreas Zweili 84594a4c3d restructure the test case table code 2017-08-31 11:57:58 +02:00
Andreas Zweili b3c1d5068e update the text to reflect the new gui 2017-08-31 11:50:34 +02:00
Andreas Zweili cf5377a671 correct a sentence 2017-08-31 11:35:46 +02:00
Andreas Zweili 21dc10c7b4 update the time planning 2017-08-31 11:01:03 +02:00
Andreas Zweili 928c318dc2 update the LoginForm section 2017-08-30 23:17:50 +02:00
Andreas Zweili 962a6e09e3 fix a screenshots path 2017-08-30 22:55:51 +02:00
Andreas Zweili b294578fe8 update the images to reflect the newest changes 2017-08-30 22:54:19 +02:00
Andreas Zweili 7f02aeb6d4 remove addlocationlist 2017-08-30 20:10:55 +02:00
Andreas Zweili 5840e64d27 fix the id forwarding 2017-08-30 19:55:25 +02:00
Andreas Zweili 607db6b494 remove unnecessary code 2017-08-30 16:22:18 +02:00
Andreas Zweili b1ce4f40f4 remove unnecessary code 2017-08-30 15:33:46 +02:00
Andreas Zweili d821d687b3 delete old code 2017-08-30 15:25:14 +02:00
Andreas Zweili eb17e67e19 change the GetMembers class to a static class 2017-08-30 15:23:13 +02:00
Andreas Zweili 918aca0b0e fix some typos 2017-08-29 10:47:32 +02:00
Andreas Zweili 9257314cf0 Merge branch 'andreas' of git.2li.ch:ibz/db_AI-4 into andreas 2017-08-28 23:56:33 +02:00
Andreas Zweili d32326bfda finalize the documentation 2017-08-28 23:56:21 +02:00
Andreas Zweili b06eef7614 Merge branch 'master' into andreas 2017-08-28 10:54:40 +02:00
Andreas Zweili af517873d1 make the dashboard a bit smaller 2017-08-28 10:54:16 +02:00
Andreas Zweili 9166b5196f Various small fixes 2017-08-27 13:35:02 +02:00
Ismail e1f734b2b3 Changes to the C sharp part of the doku 2017-08-27 12:05:20 +02:00
Ismail 2d216b9721 change the class "GetRents" to the right order of the VIEW and took the needed string and int from the class 2017-08-27 09:43:05 +02:00
Andreas Zweili 4c2edd761b some small fixes 2017-08-24 19:12:08 +02:00
Andreas Zweili df0472230a Update the documentation and fix various problems. 2017-08-24 17:58:04 +02:00
Andreas Zweili 511373efb8 insert and update all the graphics 2017-08-24 15:36:00 +02:00
Andreas Zweili e16f4bfede correct to item environment 2017-08-23 23:29:13 +02:00
Andreas Zweili 2b7d0cd645 update the picture sizes 2017-08-23 23:27:37 +02:00
Andreas Zweili bde873eb79 remove an unneeded section 2017-08-23 23:13:33 +02:00
Andreas Zweili 3e538a2ea5 remove an unneeded line 2017-08-23 23:12:28 +02:00
Andreas Zweili fca04f0a64 Merge branch 'master' into andreas 2017-08-23 23:10:19 +02:00
Andreas Zweili b6d1437913 create a new defintion of the paragraph environment 2017-08-23 22:35:06 +02:00
Andreas Zweili 8ae2019dd3 change table sizes 2017-08-21 18:51:12 +02:00
Andreas Zweili c9922c4a15 add a current version of the time planning 2017-08-19 15:07:10 +02:00
Andreas Zweili 0b120cbec8 fix a typo 2017-08-19 14:59:10 +02:00
Andreas Zweili b44ee71b78 fix a typo 2017-08-19 14:58:17 +02:00
Andreas Zweili e9ea46f6f9 add pictures and fix various spelling errors 2017-08-19 14:56:07 +02:00
Andreas Zweili 6b638f2116 delete the svg files 2017-08-19 14:55:53 +02:00
Andreas Zweili f69d014250 create puml diagrammes for the csharp classes 2017-08-16 15:05:34 +02:00
Andreas Zweili 66e4649a4e add rent_prices as an attribute to locations 2017-08-09 20:31:02 +02:00
Andreas Zweili 34a8472dfa separate the locations and rent_prices tables
This way it would be a bit easier to work with
and it would make more sense in the payment history.
2017-08-08 22:20:42 +02:00
Andreas Zweili d210e1522e create a sql script to create the rents view 2017-08-08 21:53:14 +02:00
Andreas Zweili 9f1f0d0139 rename the removal script 2017-08-08 21:52:37 +02:00
Andreas Zweili 01a50b3986 Merge branch 'izy' into andreas 2017-08-05 11:02:28 +02:00
Andreas Zweili e4aeb17446 add test cases 2017-07-27 18:42:30 +02:00
Andreas Zweili fc57b8002c add use cases to the org file 2017-07-27 17:15:26 +02:00
124 changed files with 1319 additions and 11653 deletions

View File

@ -22,6 +22,26 @@ mehr verändert werden sollten. Ihre Funktionen sind dabei:
- titlepage.tex: Enthält nur den Inhalt des Titelbildes
- bib.bib: Enthält die Quellen
##### Installation
1. Das SQL Studio Projekt im Ordner "sql" öffnen. Anschliessend die SQL Scripts
entsprechend ihrer Nummerierung ausführen:
```
* setup_01_create_database.sql
* setup_02_create_table.sql
* setup_03_insert_data.sql
* setup_04_create_views.sql
```
2. Das Visual Studio Projekt im Ordner
"csharp" öffnen.
3. Den Connection String in den Properties der Datei App.config anpassen.
4. Applikation kompilieren.
### Support
We don't provide any support for the content in this repository.

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name=" marketdb" connectionString="Server=Database=marketdb;Trusted_Connection=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

View File

@ -1,22 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace db___demo__app
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new StartPage());
}
}
}

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("db - demo -app")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("db - demo -app")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("261f26ce-187c-4104-8ef7-8556f942c601")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,71 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace db___demo__app.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
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()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("db___demo__app.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace db___demo__app.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -1,124 +0,0 @@
namespace db___demo__app
{
partial class StartPage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.titel = new System.Windows.Forms.Label();
this.locations = new System.Windows.Forms.ListBox();
this.location_titel = new System.Windows.Forms.Label();
this.search = new System.Windows.Forms.TextBox();
this.search_button = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// titel
//
this.titel.AutoSize = true;
this.titel.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.titel.Location = new System.Drawing.Point(36, 32);
this.titel.Name = "titel";
this.titel.Size = new System.Drawing.Size(330, 32);
this.titel.TabIndex = 0;
this.titel.Text = "Freier Markt im Kleinen";
this.titel.Click += new System.EventHandler(this.label1_Click);
//
// locations
//
this.locations.FormattingEnabled = true;
this.locations.ItemHeight = 25;
this.locations.Location = new System.Drawing.Point(41, 100);
this.locations.Name = "locations";
this.locations.Size = new System.Drawing.Size(325, 129);
this.locations.TabIndex = 1;
//
// location_titel
//
this.location_titel.AutoSize = true;
this.location_titel.Location = new System.Drawing.Point(36, 72);
this.location_titel.Name = "location_titel";
this.location_titel.Size = new System.Drawing.Size(124, 25);
this.location_titel.TabIndex = 2;
this.location_titel.Text = "Freie Stände";
this.location_titel.Click += new System.EventHandler(this.label1_Click_1);
//
// search
//
this.search.Location = new System.Drawing.Point(41, 242);
this.search.Name = "search";
this.search.Size = new System.Drawing.Size(227, 30);
this.search.TabIndex = 7;
//
// search_button
//
this.search_button.Location = new System.Drawing.Point(280, 242);
this.search_button.Name = "search_button";
this.search_button.Size = new System.Drawing.Size(86, 33);
this.search_button.TabIndex = 8;
this.search_button.Text = "search";
this.search_button.UseVisualStyleBackColor = true;
this.search_button.Click += new System.EventHandler(this.search_button_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(481, 156);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(287, 30);
this.textBox1.TabIndex = 9;
//
// StartPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(957, 445);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.search_button);
this.Controls.Add(this.search);
this.Controls.Add(this.location_titel);
this.Controls.Add(this.locations);
this.Controls.Add(this.titel);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "StartPage";
this.Text = "FMiK-Start";
this.Load += new System.EventHandler(this.StartPage_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label titel;
private System.Windows.Forms.ListBox locations;
private System.Windows.Forms.Label location_titel;
private System.Windows.Forms.TextBox search;
private System.Windows.Forms.Button search_button;
private System.Windows.Forms.TextBox textBox1;
}
}

View File

@ -1,43 +0,0 @@
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 db___demo__app
{
public partial class StartPage : Form
{
List<locations> location = new List<locations>();
public StartPage()
{
InitializeComponent();
}
private void StartPage_Load(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void label1_Click_1(object sender, EventArgs e)
{
}
private void search_button_Click(object sender, EventArgs e)
{
dataAccess db = new dataAccess();
location = db.GetLocations(search.Text);
}
}
}

View File

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

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name=" marketdb" connectionString="Server=Database=marketdb;Trusted_Connection=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

View File

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace db___demo__app
{
public class dataAccess
{
public List<locations> GetLocations(string location_name)
{
throw new NotImplementedException();
}
}
}

View File

@ -1,86 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{261F26CE-187C-4104-8EF7-8556F942C601}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>db___demo__app</RootNamespace>
<AssemblyName>db - demo -app</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="dataAccess.cs" />
<Compile Include="helper.cs" />
<Compile Include="locations.cs" />
<Compile Include="StartPage.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="StartPage.Designer.cs">
<DependentUpon>StartPage.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="StartPage.resx">
<DependentUpon>StartPage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,17 +0,0 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace db___demo__app
{
public static class helper
{
public static string CnnVal(string name)
{
return ConfigurationManager.ConnectionStrings[name].ConnectionString;
}
}
}

View File

@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace db___demo__app
{
public class locations
{
public int location_id { get; set; }
public string streetname { get; set; }
public int location_capacity { get; set; }
public string location_name { get; set; }
public int city_id { get; set; }
public int country_id { get; set; }
}
}

View File

@ -1,9 +0,0 @@
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\bin\Debug\db - demo -app.exe.config
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\bin\Debug\db - demo -app.exe
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\bin\Debug\db - demo -app.pdb
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db-appUI.csprojResolveAssemblyReference.cache
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db___demo__app.StartPage.resources
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db___demo__app.Properties.Resources.resources
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db-appUI.csproj.GenerateResource.Cache
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db - demo -app.exe
c:\users\ismail\documents\visual studio 2017\Projects\db - demo -app\db - demo -app\obj\Debug\db - demo -app.pdb

View File

@ -1,22 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.7
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "db-appUI", "db - demo -app\db-appUI.csproj", "{261F26CE-187C-4104-8EF7-8556F942C601}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{261F26CE-187C-4104-8EF7-8556F942C601}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{261F26CE-187C-4104-8EF7-8556F942C601}.Debug|Any CPU.Build.0 = Debug|Any CPU
{261F26CE-187C-4104-8EF7-8556F942C601}.Release|Any CPU.ActiveCfg = Release|Any CPU
{261F26CE-187C-4104-8EF7-8556F942C601}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("db-appLibary")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("db-appLibary")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("d917f26e-cde7-4bd3-ba68-6a3299cf8c5a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace db_appLibary
{
public class locations
{
}
}

View File

@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D917F26E-CDE7-4BD3-BA68-6A3299CF8C5A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>db_appLibary</RootNamespace>
<AssemblyName>db-appLibary</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="db-appLibary.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1 +0,0 @@
14ba4ef7b776c31f5ba06bf6aec3ad2ed80e3463

View File

@ -28,203 +28,183 @@
/// </summary>
private void InitializeComponent()
{
this.LocationListBox = new System.Windows.Forms.ListBox();
this.LocationTextBox = new System.Windows.Forms.TextBox();
this.LocationLabel = new System.Windows.Forms.Label();
this.LocationSearchButton = new System.Windows.Forms.Button();
this.RentDateLabel = new System.Windows.Forms.Label();
this.PaymentDateLabel = new System.Windows.Forms.Label();
this.RentInsertButton = new System.Windows.Forms.Button();
this.RentDateTimePicker = new System.Windows.Forms.DateTimePicker();
this.ADDLocationListBox = new System.Windows.Forms.ListBox();
this.ADDLocationLabel = new System.Windows.Forms.Label();
this.ADDLocationButton = new System.Windows.Forms.Button();
this.UserDisplaylistBox = new System.Windows.Forms.ListBox();
this.UserDisplayLabel = new System.Windows.Forms.Label();
this.ShowRentListBox = new System.Windows.Forms.ListBox();
this.ShowRentLabel = new System.Windows.Forms.Label();
this.ShowRentButton = new System.Windows.Forms.Button();
this.RentedTextBox = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// LocationListBox
//
this.LocationListBox.FormattingEnabled = true;
this.LocationListBox.ItemHeight = 16;
this.LocationListBox.Location = new System.Drawing.Point(12, 145);
this.LocationListBox.Name = "LocationListBox";
this.LocationListBox.Size = new System.Drawing.Size(196, 244);
this.LocationListBox.TabIndex = 0;
//
// LocationTextBox
//
this.LocationTextBox.Location = new System.Drawing.Point(12, 93);
this.LocationTextBox.Name = "LocationTextBox";
this.LocationTextBox.Size = new System.Drawing.Size(100, 22);
this.LocationTextBox.TabIndex = 1;
//
// LocationLabel
//
this.LocationLabel.AutoSize = true;
this.LocationLabel.Location = new System.Drawing.Point(12, 53);
this.LocationLabel.Name = "LocationLabel";
this.LocationLabel.Size = new System.Drawing.Size(135, 17);
this.LocationLabel.TabIndex = 2;
this.LocationLabel.Text = "Locations-Searched";
//
// LocationSearchButton
//
this.LocationSearchButton.Location = new System.Drawing.Point(118, 92);
this.LocationSearchButton.Name = "LocationSearchButton";
this.LocationSearchButton.Size = new System.Drawing.Size(75, 23);
this.LocationSearchButton.TabIndex = 3;
this.LocationSearchButton.Text = "Search";
this.LocationSearchButton.UseVisualStyleBackColor = true;
this.LocationSearchButton.Click += new System.EventHandler(this.LocationSearchButton_Click);
//
// RentDateLabel
//
this.RentDateLabel.AutoSize = true;
this.RentDateLabel.Location = new System.Drawing.Point(250, 98);
this.RentDateLabel.Name = "RentDateLabel";
this.RentDateLabel.Size = new System.Drawing.Size(73, 17);
this.RentDateLabel.TabIndex = 20;
this.RentDateLabel.Text = "Rent-Date";
//
// PaymentDateLabel
//
this.PaymentDateLabel.AutoSize = true;
this.PaymentDateLabel.Location = new System.Drawing.Point(500, 258);
this.PaymentDateLabel.Name = "PaymentDateLabel";
this.PaymentDateLabel.Size = new System.Drawing.Size(0, 17);
this.PaymentDateLabel.TabIndex = 18;
//
// RentInsertButton
//
this.RentInsertButton.Location = new System.Drawing.Point(470, 395);
this.RentInsertButton.Name = "RentInsertButton";
this.RentInsertButton.Size = new System.Drawing.Size(101, 23);
this.RentInsertButton.TabIndex = 17;
this.RentInsertButton.Text = "Rent";
this.RentInsertButton.UseVisualStyleBackColor = true;
this.RentInsertButton.Click += new System.EventHandler(this.RentInsertButton_Click);
//
// RentDateTimePicker
//
this.RentDateTimePicker.Location = new System.Drawing.Point(329, 94);
this.RentDateTimePicker.Name = "RentDateTimePicker";
this.RentDateTimePicker.Size = new System.Drawing.Size(242, 22);
this.RentDateTimePicker.TabIndex = 21;
//
// ADDLocationListBox
//
this.ADDLocationListBox.FormattingEnabled = true;
this.ADDLocationListBox.ItemHeight = 16;
this.ADDLocationListBox.Location = new System.Drawing.Point(329, 145);
this.ADDLocationListBox.Name = "ADDLocationListBox";
this.ADDLocationListBox.Size = new System.Drawing.Size(242, 244);
this.ADDLocationListBox.TabIndex = 23;
//
// ADDLocationLabel
//
this.ADDLocationLabel.AutoSize = true;
this.ADDLocationLabel.Location = new System.Drawing.Point(326, 53);
this.ADDLocationLabel.Name = "ADDLocationLabel";
this.ADDLocationLabel.Size = new System.Drawing.Size(115, 17);
this.ADDLocationLabel.TabIndex = 24;
this.ADDLocationLabel.Text = "Locations-Added";
//
// ADDLocationButton
//
this.ADDLocationButton.Location = new System.Drawing.Point(228, 183);
this.ADDLocationButton.Name = "ADDLocationButton";
this.ADDLocationButton.Size = new System.Drawing.Size(75, 23);
this.ADDLocationButton.TabIndex = 25;
this.ADDLocationButton.Text = "ADD";
this.ADDLocationButton.UseVisualStyleBackColor = true;
this.ADDLocationButton.Click += new System.EventHandler(this.ADDLocationButton_Click);
//
// UserDisplaylistBox
//
this.UserDisplaylistBox.FormattingEnabled = true;
this.UserDisplaylistBox.ItemHeight = 16;
this.UserDisplaylistBox.Location = new System.Drawing.Point(133, 13);
this.UserDisplaylistBox.Name = "UserDisplaylistBox";
this.UserDisplaylistBox.Size = new System.Drawing.Size(257, 20);
this.UserDisplaylistBox.TabIndex = 26;
//
// UserDisplayLabel
//
this.UserDisplayLabel.AutoSize = true;
this.UserDisplayLabel.Location = new System.Drawing.Point(12, 13);
this.UserDisplayLabel.Name = "UserDisplayLabel";
this.UserDisplayLabel.Size = new System.Drawing.Size(94, 17);
this.UserDisplayLabel.TabIndex = 27;
this.UserDisplayLabel.Text = "Logged in as:";
//
// ShowRentListBox
//
this.ShowRentListBox.FormattingEnabled = true;
this.ShowRentListBox.ItemHeight = 16;
this.ShowRentListBox.Location = new System.Drawing.Point(675, 145);
this.ShowRentListBox.Name = "ShowRentListBox";
this.ShowRentListBox.Size = new System.Drawing.Size(629, 244);
this.ShowRentListBox.TabIndex = 28;
//
// ShowRentLabel
//
this.ShowRentLabel.AutoSize = true;
this.ShowRentLabel.Location = new System.Drawing.Point(672, 53);
this.ShowRentLabel.Name = "ShowRentLabel";
this.ShowRentLabel.Size = new System.Drawing.Size(120, 17);
this.ShowRentLabel.TabIndex = 29;
this.ShowRentLabel.Text = "Rented-Locations";
//
// ShowRentButton
//
this.ShowRentButton.Location = new System.Drawing.Point(781, 92);
this.ShowRentButton.Name = "ShowRentButton";
this.ShowRentButton.Size = new System.Drawing.Size(75, 23);
this.ShowRentButton.TabIndex = 30;
this.ShowRentButton.Text = "Show";
this.ShowRentButton.UseVisualStyleBackColor = true;
this.ShowRentButton.Click += new System.EventHandler(this.ShowRentButton_Click);
//
// RentedTextBox
//
this.RentedTextBox.Location = new System.Drawing.Point(675, 93);
this.RentedTextBox.Name = "RentedTextBox";
this.RentedTextBox.Size = new System.Drawing.Size(100, 22);
this.RentedTextBox.TabIndex = 31;
//
// Dashboard
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1465, 483);
this.Controls.Add(this.RentedTextBox);
this.Controls.Add(this.ShowRentButton);
this.Controls.Add(this.ShowRentLabel);
this.Controls.Add(this.ShowRentListBox);
this.Controls.Add(this.UserDisplayLabel);
this.Controls.Add(this.UserDisplaylistBox);
this.Controls.Add(this.ADDLocationButton);
this.Controls.Add(this.ADDLocationLabel);
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.Name = "Dashboard";
this.Text = "Dashboard";
this.Load += new System.EventHandler(this.Dashboard_Load);
this.ResumeLayout(false);
this.PerformLayout();
this.LocationListBox = new System.Windows.Forms.ListBox();
this.LocationTextBox = new System.Windows.Forms.TextBox();
this.LocationLabel = new System.Windows.Forms.Label();
this.LocationSearchButton = new System.Windows.Forms.Button();
this.RentDateLabel = new System.Windows.Forms.Label();
this.PaymentDateLabel = new System.Windows.Forms.Label();
this.RentInsertButton = new System.Windows.Forms.Button();
this.RentDateTimePicker = new System.Windows.Forms.DateTimePicker();
this.UserDisplayLabel = new System.Windows.Forms.Label();
this.ShowRentListBox = new System.Windows.Forms.ListBox();
this.ShowRentLabel = new System.Windows.Forms.Label();
this.ShowRentButton = new System.Windows.Forms.Button();
this.RentedTextBox = new System.Windows.Forms.TextBox();
this.LoggedInUserLabel = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// LocationListBox
//
this.LocationListBox.FormattingEnabled = true;
this.LocationListBox.Location = new System.Drawing.Point(9, 118);
this.LocationListBox.Margin = new System.Windows.Forms.Padding(2);
this.LocationListBox.Name = "LocationListBox";
this.LocationListBox.Size = new System.Drawing.Size(362, 199);
this.LocationListBox.TabIndex = 0;
//
// LocationTextBox
//
this.LocationTextBox.Location = new System.Drawing.Point(9, 76);
this.LocationTextBox.Margin = new System.Windows.Forms.Padding(2);
this.LocationTextBox.Name = "LocationTextBox";
this.LocationTextBox.Size = new System.Drawing.Size(76, 20);
this.LocationTextBox.TabIndex = 1;
//
// LocationLabel
//
this.LocationLabel.AutoSize = true;
this.LocationLabel.Location = new System.Drawing.Point(9, 43);
this.LocationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.LocationLabel.Name = "LocationLabel";
this.LocationLabel.Size = new System.Drawing.Size(102, 13);
this.LocationLabel.TabIndex = 2;
this.LocationLabel.Text = "Locations-Searched";
//
// LocationSearchButton
//
this.LocationSearchButton.Location = new System.Drawing.Point(88, 75);
this.LocationSearchButton.Margin = new System.Windows.Forms.Padding(2);
this.LocationSearchButton.Name = "LocationSearchButton";
this.LocationSearchButton.Size = new System.Drawing.Size(56, 19);
this.LocationSearchButton.TabIndex = 3;
this.LocationSearchButton.Text = "Search";
this.LocationSearchButton.UseVisualStyleBackColor = true;
this.LocationSearchButton.Click += new System.EventHandler(this.LocationSearchButton_Click);
//
// RentDateLabel
//
this.RentDateLabel.AutoSize = true;
this.RentDateLabel.Location = new System.Drawing.Point(11, 330);
this.RentDateLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.RentDateLabel.Name = "RentDateLabel";
this.RentDateLabel.Size = new System.Drawing.Size(56, 13);
this.RentDateLabel.TabIndex = 20;
this.RentDateLabel.Text = "Rent-Date";
//
// PaymentDateLabel
//
this.PaymentDateLabel.AutoSize = true;
this.PaymentDateLabel.Location = new System.Drawing.Point(375, 210);
this.PaymentDateLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.PaymentDateLabel.Name = "PaymentDateLabel";
this.PaymentDateLabel.Size = new System.Drawing.Size(0, 13);
this.PaymentDateLabel.TabIndex = 18;
//
// RentInsertButton
//
this.RentInsertButton.Location = new System.Drawing.Point(295, 328);
this.RentInsertButton.Margin = new System.Windows.Forms.Padding(2);
this.RentInsertButton.Name = "RentInsertButton";
this.RentInsertButton.Size = new System.Drawing.Size(76, 19);
this.RentInsertButton.TabIndex = 17;
this.RentInsertButton.Text = "Rent";
this.RentInsertButton.UseVisualStyleBackColor = true;
this.RentInsertButton.Click += new System.EventHandler(this.RentInsertButton_Click);
//
// RentDateTimePicker
//
this.RentDateTimePicker.Location = new System.Drawing.Point(78, 327);
this.RentDateTimePicker.Margin = new System.Windows.Forms.Padding(2);
this.RentDateTimePicker.Name = "RentDateTimePicker";
this.RentDateTimePicker.Size = new System.Drawing.Size(182, 20);
this.RentDateTimePicker.TabIndex = 21;
//
// UserDisplayLabel
//
this.UserDisplayLabel.AutoSize = true;
this.UserDisplayLabel.Location = new System.Drawing.Point(9, 11);
this.UserDisplayLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.UserDisplayLabel.Name = "UserDisplayLabel";
this.UserDisplayLabel.Size = new System.Drawing.Size(71, 13);
this.UserDisplayLabel.TabIndex = 27;
this.UserDisplayLabel.Text = "Logged in as:";
//
// ShowRentListBox
//
this.ShowRentListBox.FormattingEnabled = true;
this.ShowRentListBox.Location = new System.Drawing.Point(384, 118);
this.ShowRentListBox.Margin = new System.Windows.Forms.Padding(2);
this.ShowRentListBox.Name = "ShowRentListBox";
this.ShowRentListBox.Size = new System.Drawing.Size(351, 199);
this.ShowRentListBox.TabIndex = 28;
this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged);
//
// ShowRentLabel
//
this.ShowRentLabel.AutoSize = true;
this.ShowRentLabel.Location = new System.Drawing.Point(381, 43);
this.ShowRentLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.ShowRentLabel.Name = "ShowRentLabel";
this.ShowRentLabel.Size = new System.Drawing.Size(91, 13);
this.ShowRentLabel.TabIndex = 29;
this.ShowRentLabel.Text = "Rented-Locations";
//
// ShowRentButton
//
this.ShowRentButton.Location = new System.Drawing.Point(464, 74);
this.ShowRentButton.Margin = new System.Windows.Forms.Padding(2);
this.ShowRentButton.Name = "ShowRentButton";
this.ShowRentButton.Size = new System.Drawing.Size(56, 19);
this.ShowRentButton.TabIndex = 30;
this.ShowRentButton.Text = "Show";
this.ShowRentButton.UseVisualStyleBackColor = true;
this.ShowRentButton.Click += new System.EventHandler(this.ShowRentButton_Click);
//
// RentedTextBox
//
this.RentedTextBox.Location = new System.Drawing.Point(384, 74);
this.RentedTextBox.Margin = new System.Windows.Forms.Padding(2);
this.RentedTextBox.Name = "RentedTextBox";
this.RentedTextBox.Size = new System.Drawing.Size(76, 20);
this.RentedTextBox.TabIndex = 31;
//
// LoggedInUserLabel
//
this.LoggedInUserLabel.AutoSize = true;
this.LoggedInUserLabel.Location = new System.Drawing.Point(84, 11);
this.LoggedInUserLabel.Name = "LoggedInUserLabel";
this.LoggedInUserLabel.Size = new System.Drawing.Size(100, 13);
this.LoggedInUserLabel.TabIndex = 32;
this.LoggedInUserLabel.Text = "LoggedInUserLabel";
this.LoggedInUserLabel.Click += new System.EventHandler(this.LoggedInUser_Click);
//
// Dashboard
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(750, 363);
this.Controls.Add(this.LoggedInUserLabel);
this.Controls.Add(this.RentedTextBox);
this.Controls.Add(this.ShowRentButton);
this.Controls.Add(this.ShowRentLabel);
this.Controls.Add(this.ShowRentListBox);
this.Controls.Add(this.UserDisplayLabel);
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);
this.Name = "Dashboard";
this.Text = "Dashboard";
this.Load += new System.EventHandler(this.Dashboard_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
@ -237,14 +217,11 @@
private System.Windows.Forms.Label PaymentDateLabel;
private System.Windows.Forms.Button RentInsertButton;
private System.Windows.Forms.DateTimePicker RentDateTimePicker;
private System.Windows.Forms.ListBox ADDLocationListBox;
private System.Windows.Forms.Label ADDLocationLabel;
private System.Windows.Forms.Button ADDLocationButton;
private System.Windows.Forms.ListBox UserDisplaylistBox;
private System.Windows.Forms.Label UserDisplayLabel;
private System.Windows.Forms.ListBox ShowRentListBox;
private System.Windows.Forms.Label ShowRentLabel;
private System.Windows.Forms.Button ShowRentButton;
private System.Windows.Forms.TextBox RentedTextBox;
private System.Windows.Forms.Label LoggedInUserLabel;
}
}

View File

@ -17,8 +17,6 @@ namespace db_AI_4
List<GetLocations> rentlocation = new List<GetLocations>();
List<GetRents> rentedlocations = new List<GetRents>();
BindingSource locationBinding = new BindingSource();
BindingSource addlocationBinding = new BindingSource();
BindingSource showrentBinding = new BindingSource();
@ -27,6 +25,7 @@ namespace db_AI_4
{
InitializeComponent();
UpdateBinding();
LoggedInUserLabel.Text = GetMembers.email_address;
}
private void UpdateBinding()
@ -40,11 +39,6 @@ namespace db_AI_4
//Loading of the Selected Locations
ADDLocationListBox.DataSource = rentlocation;
ADDLocationListBox.DisplayMember = "LocationInfo";
addlocationBinding.DataSource = rentlocation;
ADDLocationListBox.DataSource = addlocationBinding;
// Rented Locations
ShowRentListBox.DataSource = rentedlocations;
@ -53,7 +47,6 @@ namespace db_AI_4
showrentBinding.DataSource = rentedlocations;
ShowRentListBox.DataSource = showrentBinding;
}
@ -69,60 +62,28 @@ namespace db_AI_4
}
// Search Locations end
/*
//Insert Locations start
private void LocationInsertButton_Click(object sender, EventArgs e)
{
DataAccess db = new DataAccess();
int CapacityValue;
CapacityValue = Convert.ToInt32(LocationCapacityInputBox.Text);
CapacityValue = int.Parse(LocationCapacityInputBox.Text);
db.InsertLocations(StreetnameInsertBox.Text, Convert.ToInt32(LocationCapacityInputBox.Text), LocationNameInputBox.Text);
StreetnameInsertBox.Text = "";
LocationCapacityInputBox.Text = "";
LocationNameInputBox.Text = "";
}
// Insert Locations end
*/
// Insert Rent start
private void RentInsertButton_Click(object sender, EventArgs e)
{
DataAccess db = new DataAccess();
int RentPriceID;
RentPriceID = 1;
int MemberID;
MemberID = 1;
db.InsertRent(RentDateTimePicker.Value.Date.ToString("yyyyMMdd"), RentPriceID, MemberID);
RentDateTimePicker.Text = "";
try
{
GetLocations selectedItem = (GetLocations)LocationListBox.SelectedItem;
//var command = "SELECT rent_price_id FROM dbo.locations WHERE locations.location_name = @Location_Name";
selectedItem = db.GetLocations(selectedItem.location_name)[0];
db.InsertRent(RentDateTimePicker.Value.Date.ToString("yyyyMMdd"), GetMembers.member_id, selectedItem.rent_price_id, selectedItem.location_id);
//RentDateTimePicker.Text = "";
}
catch
{
MessageBox.Show("Please select a location and a date.");
}
}
// Insert Rent end
//Add Location to ADDBox start
private void ADDLocationButton_Click(object sender, EventArgs e)
{
GetLocations selectedItem = (GetLocations)LocationListBox.SelectedItem;
rentlocation.Add(selectedItem);
UpdateBinding();
}
private void Dashboard_Load(object sender, EventArgs e)
{
@ -136,6 +97,17 @@ namespace db_AI_4
UpdateBinding();
}
private void ShowRentListBox_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void LoggedInUser_Click(object sender, EventArgs e)
{
}
//Add Location to ADDBox end
}

View File

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

View File

@ -25,47 +25,30 @@ namespace db_AI_4
}
}
// im moment nicht benötigt (sollte die id des momentanen members herauslesen)
public List<GetMembers> DisplayUser(string Email_address)
public void CurrentUser(string input_mail)
{
List<int> QueryResult = new List<int>();
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
{
var outputUser = connection.Query<GetMembers>($"SELECT member_id FROM dbo.members WHERE email_address = '{Email_address}'").ToList();
return outputUser;
var command = "SELECT member_id FROM dbo.members WHERE members.email_address = @Email_Adress";
QueryResult = connection.Query<int>(command, new { Email_Adress = input_mail }).ToList();
GetMembers.member_id = Convert.ToInt32(QueryResult[0]);
}
}
//Read locations from the Database function end
// Insert Locations into Database start
public void InsertLocations(string StreetName, int LocationCapacity, string LocationName)
{
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
{
List<GetLocations> locations = new List<GetLocations>();
locations.Add(new GetLocations { streetname = StreetName, location_capacity = LocationCapacity, location_name = LocationName });
connection.Execute("INSERT INTO dbo.locations (streetname, location_capacity, location_name)" +
" VALUES (@streetName, @location_capacity, @location_name)", locations);
}
}
// Insert Locations into Database end
// Insert Rents into Database start
public void InsertRent(string RentDate, int MemberID, int RentPriceID )
public void InsertRent(string RentDate, int MemberID, int RentPriceID , int LocationID)
{
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
{
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 = GetMembers.member_id, rent_price_id = RentPriceID, location_id = LocationID});
connection.Execute("INSERT INTO dbo.rents (rent_date, member_id, rent_price_id)" +
" VALUES (@rent_date, @member_id, @rent_price_id )", rents);
connection.Execute("INSERT INTO dbo.rents (rent_date, member_id, rent_price_id, location_id)" +
" VALUES (@rent_date, @member_id, @rent_price_id, @location_id )", rents);
}
}
// Insert Rents into Database end
@ -73,21 +56,18 @@ namespace db_AI_4
//Registration function start
public void InsertMember(string Email_address, string Password)
public void InsertMember(string input_mail, string input_pw)
{
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
{
List<GetMembers> members = new List<GetMembers>();
members.Add(new GetMembers { email_address = Email_address, password = Password });
connection.Execute("INSERT INTO dbo.members ( email_address, password)" +
" VALUES (@Email_address, @Password) ", members);
var command = "INSERT INTO dbo.members (email_address, password) VALUES ( @Email_address, @Password)";
connection.Execute(command, new { Email_address = input_mail, Password = input_pw });
}
}
//Registration function end
//Read Rented locations start
internal List<GetRents> GetRentedLocations(string LocationName)
{
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb")))
@ -98,9 +78,8 @@ namespace db_AI_4
}
}
//Registration function end
//Read Rented locations end
@ -122,7 +101,7 @@ namespace db_AI_4
if (count == 1)
{
MessageBox.Show("It Worked");
CurrentUser(GetMembers.email_address);
Dashboard dashboard = new Dashboard();
dashboard.Show();
}

View File

@ -12,7 +12,7 @@ namespace db_AI_4
public string streetname { get; set; }
public int location_capacity { get; set; }
public string location_name { get; set; }
public int rent_price_id { get; set; }
public string LocationInfo

View File

@ -6,17 +6,15 @@ using System.Threading.Tasks;
namespace db_AI_4
{
public class GetMembers
public static class GetMembers
{
public int member_id { get; set; }
public string email_address { get; set; }
public string password { get; set; }
public int member_status_id { get; set; }
public static int member_id { get; set; }
public static string email_address { get; set; }
public static string password { get; set; }
public static int member_status_id { get; set; }
public string MemberInfo
public static string MemberInfo
{
get
{
@ -25,7 +23,7 @@ namespace db_AI_4
}
public string MemberID
public static string MemberID
{
get
{

View File

@ -12,7 +12,9 @@ namespace db_AI_4
public string rent_date { get; set; }
public string payment_date { get; set; }
public int member_id { get; set; }
public string email_address { get; set; }
public int rent_price_id { get; set; }
public int rent_price { get; set; }
public int location_id { get; set; }
public string streetname { get; set; }
@ -26,7 +28,7 @@ namespace db_AI_4
{
get
{
return $"{location_name} {streetname} {location_capacity} { rent_date } {member_id} {rent_price_id} ";
return $"{location_name} {location_capacity} {rent_price} { rent_date } {email_address} ";
}
}

View File

@ -22,18 +22,19 @@ namespace db_AI_4
private void RegistrationButton_Click(object sender, EventArgs e)
{
DataAccess db = new DataAccess();
db.InsertMember(EmailLoginBox.Text, PasswordLoginBox.Text);
EmailLoginBox.Text = "";
PasswordLoginBox.Text = "";
GetMembers.email_address = EmailLoginBox.Text;
GetMembers.password = PasswordLoginBox.Text;
db.InsertMember(GetMembers.email_address, GetMembers.password);
MessageBox.Show("Member Registered.");
}
private void LoginButton_Click(object sender, EventArgs e)
{
DataAccess db = new DataAccess();
db.CheckLogin(EmailLoginBox.Text, PasswordLoginBox.Text);
GetMembers.email_address = EmailLoginBox.Text;
GetMembers.password = PasswordLoginBox.Text;
db.CheckLogin(GetMembers.email_address, GetMembers.password);
}

View File

@ -1,22 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.7
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "marketconnectionNET", "marketconnectionNET\marketconnectionNET.csproj", "{25F26283-2288-4C4B-AAD1-4AB3453F7752}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Debug|Any CPU.Build.0 = Debug|Any CPU
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Release|Any CPU.ActiveCfg = Release|Any CPU
{25F26283-2288-4C4B-AAD1-4AB3453F7752}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="marketdb" connectionString="Data Source=.\SQL2016;Initial Catalog=marketdb;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

View File

@ -1,235 +0,0 @@
namespace marketconnectionNET
{
partial class Dashboard
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.locationbox = new System.Windows.Forms.ListBox();
this.LocationName = new System.Windows.Forms.TextBox();
this.search = new System.Windows.Forms.Button();
this.firstnameInsText = new System.Windows.Forms.TextBox();
this.lastnameInsText = new System.Windows.Forms.TextBox();
this.firstnamelabel = new System.Windows.Forms.Label();
this.lastnamelabel = new System.Windows.Forms.Label();
this.date_of_birthinslabel = new System.Windows.Forms.Label();
this.streetnameInsText = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.streetnumberInsText = new System.Windows.Forms.TextBox();
this.InsertData = new System.Windows.Forms.Label();
this.ReadInsetData = new System.Windows.Forms.Label();
this.insertRecordButton = new System.Windows.Forms.Button();
this.dateTimePicker = new System.Windows.Forms.DateTimePicker();
this.SuspendLayout();
//
// locationbox
//
this.locationbox.FormattingEnabled = true;
this.locationbox.ItemHeight = 16;
this.locationbox.Location = new System.Drawing.Point(12, 79);
this.locationbox.Name = "locationbox";
this.locationbox.Size = new System.Drawing.Size(232, 340);
this.locationbox.TabIndex = 0;
//
// LocationName
//
this.LocationName.Location = new System.Drawing.Point(12, 28);
this.LocationName.Name = "LocationName";
this.LocationName.Size = new System.Drawing.Size(100, 22);
this.LocationName.TabIndex = 1;
this.LocationName.Text = "LocationName";
this.LocationName.Click += new System.EventHandler(this.search_Click);
this.LocationName.TextChanged += new System.EventHandler(this.search_Click);
//
// search
//
this.search.Location = new System.Drawing.Point(169, 28);
this.search.Name = "search";
this.search.Size = new System.Drawing.Size(75, 23);
this.search.TabIndex = 2;
this.search.Text = "search";
this.search.UseVisualStyleBackColor = true;
this.search.Click += new System.EventHandler(this.search_Click);
//
// firstnameInsText
//
this.firstnameInsText.Location = new System.Drawing.Point(435, 81);
this.firstnameInsText.Name = "firstnameInsText";
this.firstnameInsText.Size = new System.Drawing.Size(100, 22);
this.firstnameInsText.TabIndex = 4;
//
// lastnameInsText
//
this.lastnameInsText.Location = new System.Drawing.Point(435, 131);
this.lastnameInsText.Name = "lastnameInsText";
this.lastnameInsText.Size = new System.Drawing.Size(100, 22);
this.lastnameInsText.TabIndex = 5;
//
// firstnamelabel
//
this.firstnamelabel.AutoSize = true;
this.firstnamelabel.Location = new System.Drawing.Point(323, 81);
this.firstnamelabel.Name = "firstnamelabel";
this.firstnamelabel.Size = new System.Drawing.Size(70, 17);
this.firstnamelabel.TabIndex = 7;
this.firstnamelabel.Text = "Firstname";
//
// lastnamelabel
//
this.lastnamelabel.AutoSize = true;
this.lastnamelabel.Location = new System.Drawing.Point(323, 131);
this.lastnamelabel.Name = "lastnamelabel";
this.lastnamelabel.Size = new System.Drawing.Size(70, 17);
this.lastnamelabel.TabIndex = 8;
this.lastnamelabel.Text = "Lastname";
//
// date_of_birthinslabel
//
this.date_of_birthinslabel.AutoSize = true;
this.date_of_birthinslabel.Location = new System.Drawing.Point(323, 186);
this.date_of_birthinslabel.Name = "date_of_birthinslabel";
this.date_of_birthinslabel.Size = new System.Drawing.Size(68, 17);
this.date_of_birthinslabel.TabIndex = 9;
this.date_of_birthinslabel.Text = "Birthdday";
//
// streetnameInsText
//
this.streetnameInsText.Location = new System.Drawing.Point(435, 236);
this.streetnameInsText.Name = "streetnameInsText";
this.streetnameInsText.Size = new System.Drawing.Size(100, 22);
this.streetnameInsText.TabIndex = 10;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(323, 236);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(81, 17);
this.label1.TabIndex = 12;
this.label1.Text = "Streetname";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(323, 289);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(94, 17);
this.label2.TabIndex = 13;
this.label2.Text = "Streetnumber";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// streetnumberInsText
//
this.streetnumberInsText.Location = new System.Drawing.Point(435, 289);
this.streetnumberInsText.Name = "streetnumberInsText";
this.streetnumberInsText.Size = new System.Drawing.Size(100, 22);
this.streetnumberInsText.TabIndex = 14;
//
// InsertData
//
this.InsertData.AutoSize = true;
this.InsertData.Location = new System.Drawing.Point(326, 28);
this.InsertData.Name = "InsertData";
this.InsertData.Size = new System.Drawing.Size(73, 17);
this.InsertData.TabIndex = 15;
this.InsertData.Text = "InsertData";
//
// ReadInsetData
//
this.ReadInsetData.AutoSize = true;
this.ReadInsetData.Location = new System.Drawing.Point(654, 28);
this.ReadInsetData.Name = "ReadInsetData";
this.ReadInsetData.Size = new System.Drawing.Size(107, 17);
this.ReadInsetData.TabIndex = 16;
this.ReadInsetData.Text = "ReadInsertData";
//
// insertRecordButton
//
this.insertRecordButton.Location = new System.Drawing.Point(435, 359);
this.insertRecordButton.Name = "insertRecordButton";
this.insertRecordButton.Size = new System.Drawing.Size(75, 23);
this.insertRecordButton.TabIndex = 17;
this.insertRecordButton.Text = "Insert";
this.insertRecordButton.UseVisualStyleBackColor = true;
this.insertRecordButton.Click += new System.EventHandler(this.insertRecordButton_Click);
//
// dateTimePicker
//
this.dateTimePicker.Location = new System.Drawing.Point(435, 186);
this.dateTimePicker.Name = "dateTimePicker";
this.dateTimePicker.Size = new System.Drawing.Size(200, 22);
this.dateTimePicker.TabIndex = 18;
this.dateTimePicker.ValueChanged += new System.EventHandler(this.dateTimePicker_ValueChanged);
//
// Dashboard
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(987, 479);
this.Controls.Add(this.dateTimePicker);
this.Controls.Add(this.insertRecordButton);
this.Controls.Add(this.ReadInsetData);
this.Controls.Add(this.InsertData);
this.Controls.Add(this.streetnumberInsText);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.streetnameInsText);
this.Controls.Add(this.date_of_birthinslabel);
this.Controls.Add(this.lastnamelabel);
this.Controls.Add(this.firstnamelabel);
this.Controls.Add(this.lastnameInsText);
this.Controls.Add(this.firstnameInsText);
this.Controls.Add(this.search);
this.Controls.Add(this.LocationName);
this.Controls.Add(this.locationbox);
this.Name = "Dashboard";
this.Text = "CastStudy";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox locationbox;
private System.Windows.Forms.TextBox LocationName;
private System.Windows.Forms.Button search;
private System.Windows.Forms.TextBox firstnameInsText;
private System.Windows.Forms.TextBox lastnameInsText;
private System.Windows.Forms.Label firstnamelabel;
private System.Windows.Forms.Label lastnamelabel;
private System.Windows.Forms.Label date_of_birthinslabel;
private System.Windows.Forms.TextBox streetnameInsText;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox streetnumberInsText;
private System.Windows.Forms.Label InsertData;
private System.Windows.Forms.Label ReadInsetData;
private System.Windows.Forms.Button insertRecordButton;
private System.Windows.Forms.DateTimePicker dateTimePicker;
}
}

View File

@ -1,63 +0,0 @@
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 marketconnectionNET
{
public partial class Dashboard : Form
{
List<cities> city = new List<cities>();
public Dashboard()
{
InitializeComponent();
UpdateBinding();
}
private void UpdateBinding()
{
locationbox.DataSource = city;
locationbox.DisplayMember = "FullInfo";
}
private void search_Click(object sender, EventArgs e)
{
dataaccess db = new dataaccess();
city = db.GetLocations(LocationName.Text);
UpdateBinding();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void insertRecordButton_Click(object sender, EventArgs e)
{
dataaccess db = new dataaccess();
db.InsertPerson(firstnameInsText.Text, lastnameInsText.Text, dateTimePicker.Value.Date.ToString("yyyyMMdd"), streetnameInsText.Text, streetnumberInsText.Text);
firstnameInsText.Text = "";
lastnameInsText.Text = "";
dateTimePicker.Text = "";
streetnameInsText.Text = "";
streetnumberInsText.Text = "";
}
private void dateTimePicker_ValueChanged(object sender, EventArgs e)
{
}
}
}

View File

@ -1,22 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace marketconnectionNET
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Dashboard());
}
}
}

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("marketconnectionNET")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("marketconnectionNET")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("25f26283-2288-4c4b-aad1-4ab3453f7752")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,53 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="c:\program files (x86)\microsoft visual studio\2017\enterprise\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.xsl"?>
<FxCopReport Version="15.0">
<Targets>
<Target Name="C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET\bin\Debug\marketconnectionNET.exe">
<Modules>
<Module Name="marketconnectionnet.exe">
<Messages>
<Message TypeName="MarkWindowsFormsEntryPointsWithStaThread" Category="Microsoft.Usage" CheckId="CA2232" Status="Active" Created="2017-07-12 21:04:50Z" FixCategory="NonBreaking">
<Issue Certainty="95" Level="Error" Path="C:\Users\Ismail\Documents\Visual Studio 2017\Projects\marketconnectionNET\marketconnectionNET" File="Programm.cs" Line="12">Mark the entry point method 'Programm.Main(string[])' in assembly 'marketconnectionNET.exe' with an STAThreadAttribute.</Issue>
</Message>
</Messages>
</Module>
</Modules>
</Target>
</Targets>
<Rules>
<Rule TypeName="MarkWindowsFormsEntryPointsWithStaThread" Category="Microsoft.Usage" CheckId="CA2232">
<Name>Mark Windows Forms entry points with STAThread</Name>
<Description>Assemblies that reference System.Windows.Forms should have the STAThreadAttribute. Failure to apply this attribute will most likely result in an application that does not work. Windows Forms relies on a number of components that use the STA model.</Description>
<Resolution Name="Default">Mark the entry point method {0} in assembly {1} with an STAThreadAttribute.</Resolution>
<Owner />
<Url>http://msdn.microsoft.com/library/ms182351.aspx</Url>
<Email>[none]</Email>
<MessageLevel Certainty="95">Error</MessageLevel>
<File Name="usagerules.dll" Version="15.0.0.0" />
</Rule>
</Rules>
<Localized>
<String Key="Category">Category</String>
<String Key="Certainty">Certainty</String>
<String Key="CollapseAll">Collapse All</String>
<String Key="CheckId">Check Id</String>
<String Key="Error">Error</String>
<String Key="Errors">error(s)</String>
<String Key="ExpandAll">Expand All</String>
<String Key="Help">Help</String>
<String Key="Line">Line</String>
<String Key="Messages">message(s)</String>
<String Key="LocationNotStoredInPdb">[Location not stored in Pdb]</String>
<String Key="Project">Project</String>
<String Key="Resolution">Resolution</String>
<String Key="Rule">Rule</String>
<String Key="RuleFile">Rule File</String>
<String Key="RuleDescription">Rule Description</String>
<String Key="Source">Source</String>
<String Key="Status">Status</String>
<String Key="Target">Target</String>
<String Key="Warning">Warning</String>
<String Key="Warnings">warning(s)</String>
<String Key="ReportTitle">Code Analysis Report</String>
</Localized>
</FxCopReport>

View File

@ -1,26 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace marketconnectionNET
{
public class cities
{
public int city_id { get; set; }
public string city_name { get; set; }
public int zip_code { get; set; }
public string FullInfo
{
get
{
return $"{ city_name } { zip_code } ";
}
}
}
}

View File

@ -1,42 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace marketconnectionNET
{
public class dataaccess
{
public List<cities> GetLocations(string LocationName)
{
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(helper.CnnVal("marketdb")))
{
var output = connection.Query<cities> ($"select * from cities where city_name = '{ LocationName }'").ToList();
return output;
}
}
public void InsertPerson(string Firstname, string Lastname, string Date_of_birth, string Streetname, string Streetnumber)
{
using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(helper.CnnVal("marketdb")))
{
//person newPerson = new person { firstname = Firstname, lastname = Lastname, date_of_birth = Date_of_birth, streetname = Streetname, streetnumber = Streetnumber };
List<person> people = new List<person>();
people.Add(new person { firstname = Firstname, lastname = Lastname, date_of_birth = Date_of_birth, streetname = Streetname, streetnumber = Streetnumber, });
connection.Execute("insert into dbo.persons (firstname, lastname, date_of_birth, streetname, streetnumber)" +
" values (@firstname, @lastname, @date_of_birth, @streetname, @streetnumber) ", people);
}
}
}
}

View File

@ -1,18 +0,0 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace marketconnectionNET
{
public static class helper
{
public static string CnnVal(string marketdb)
{
return ConfigurationManager.ConnectionStrings[marketdb].ConnectionString;
}
}
}

View File

@ -1,80 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{25F26283-2288-4C4B-AAD1-4AB3453F7752}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>marketconnectionNET</RootNamespace>
<AssemblyName>marketconnectionNET</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<Reference Include="Dapper, Version=1.50.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Dapper.1.50.2\lib\net451\Dapper.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="person.cs" />
<Compile Include="rentview.cs" />
<Compile Include="Dashboard.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Dashboard.Designer.cs">
<DependentUpon>Dashboard.cs</DependentUpon>
</Compile>
<Compile Include="dataaccess.cs" />
<Compile Include="helper.cs" />
<Compile Include="cities.cs" />
<Compile Include="Programm.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Dashboard.resx">
<DependentUpon>Dashboard.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,28 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace marketconnectionNET
{
public class person
{
public string firstname { get; set; }
public string lastname { get; set; }
public string date_of_birth { get; set; }
public string streetname { get; set; }
public string streetnumber { get; set; }
public string PersonInfo
{
get
{
return $"{ firstname } { lastname } {date_of_birth} {streetname} {streetnumber} ";
}
}
}
}

View File

@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace marketconnectionNET
{
public class rentview
{
// IQueryable<string> query =
// from
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@ -1,7 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Dapper" version="1.50.2" targetFramework="net452" />
</packages>

21
doku/_region_.tex Normal file
View File

@ -0,0 +1,21 @@
\message{ !name(main.tex)}\documentclass[a4paper, 11pt]{article}
\include{style}
%\include{glossary}
\begin{document}
\message{ !name(content.tex) !offset(12) }
\begin{figure}
\centering
\includegraphics[width=0.9\textwidth]{diagrammes/stakeholder.png}
\label{fig:test}
\message{ !name(main.tex) !offset(21) }
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

View File

@ -1,7 +1,7 @@
@misc{dbcs1,
Day = {24},
Month = {05},
Note = {https://stackoverflow.com/questions/10740293/insert-an-insertion-date-value-into-a-sql-table-automatically},
Note = {\url{https://stackoverflow.com/questions/10740293/insert-an-insertion-date-value-into-a-sql-table-automatically}},
Urldate = {2017-07-24},
author = {Wheat Mitch},
title = {Insert an {``}insertion date{''} value into a SQL table automatically?},
@ -12,7 +12,7 @@
@misc{dbcs2,
Day = {20},
Month = {07},
Note = {http://excel2latex.com/},
Note = {\url{http://excel2latex.com/}},
Urldate = {2017-07-24},
author = {Wood Eric},
title = {excel => LaTeX},
@ -23,7 +23,7 @@
@misc{dbcs3,
Day = {26},
Month = {07},
Note = {https://tex.stackexchange.com/questions/133/how-can-i-make-a-table-that-takes-up-more-than-a-single-page},
Note = {\url{https://tex.stackexchange.com/questions/133/how-can-i-make-a-table-that-takes-up-more-than-a-single-page}},
Urldate = {2017-07-24},
author = {Vanden},
title = {How can I make a table that takes up more than a single page?},
@ -32,7 +32,7 @@
}
@misc{dbcs4,
Note = {http://www.personal.ceu.hu/tex/footnote.htm},
Note = {\url{http://www.personal.ceu.hu/tex/footnote.htm}},
Urldate = {2017-07-24},
author = {Central European University},
title = {LaTeX Footnotes},
@ -43,7 +43,7 @@
@misc{dbcs5,
Day = {28},
Month = {02},
Note = {https://iamtimcorey.com/csharp-sql-data-access/},
Note = {\url{https://iamtimcorey.com/csharp-sql-data-access/}},
author = {Tim Corey},
title = {C\# Data Access: SQL Database},
year = {2017},
@ -53,9 +53,29 @@
@misc{dbcs6,
Day = {20},
Month = {07},
Note = {https://github.com/StackExchange/Dapper},
Note = {\url{https://github.com/StackExchange/Dapper}},
author = {StackExchange},
title = {Dapper - a simple object mapper for .Net},
year = {2017},
tags = "db_case-study"
}
}
@misc{dbcs7,
Day = {{27}},
month = {{08}},
note = {\url{{https://de.wikipedia.org/wiki/Anwendungsfalldiagramm}}},
author = {Wikipedia},
title = {{Anwendungsfalldiagramm {--} Wikipedia}},
year = {2017},
tags = "db_case-study"
}
@misc{dbcs8,
Day = {{27}},
month = {{08}},
note = {\url{{https://de.wikipedia.org/wiki/Anwendungsfall}}},
author = {Wikipedia},
title = {{Anwendungsfall {--} Wikipedia}},
year = {2017},
tags = "db_case-study"
}

View File

@ -1,3 +1,4 @@
#+OPTIONS n\:t
| Identifier + Name | 1.0 User Registrierung |
|-------------------+----------------------------------------------|
| Description | Der Use Case beschreibt die Registrierung |
@ -85,11 +86,12 @@
|-------------------+--------------------------------------------|
| Preconditions | UC 1.1 erfolgreich abgeschlossen |
|-------------------+--------------------------------------------|
| Postconditions | - |
| Postconditions | Applikation gibt passende Werte aus. |
|-------------------+--------------------------------------------|
| Normal Flow | 1. User wählt einen Standort aus |
| | 2. Die Applikation gibt die Details zum |
| | ausgewählten Standort aus. |
| Normal Flow | 1. User gibt einen Suchbegriff ein |
| | 2. Die Applikation gibt ihm eine Liste mit |
| | Standorten aus welche zu dem Suchbegriff |
| | passen. |
|-------------------+--------------------------------------------|
| Alternative Flow | - |
|-------------------+--------------------------------------------|
@ -102,30 +104,114 @@
| Date | 20. Juli 2017 |
|-------------------+--------------------------------------------|
| Testcase ID | Objective | Precondition | Steps | Testdata | Expected | Postcondition | Result |
| | | | | | Result | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-01 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-02 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-03 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-04 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-05 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-06 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-07 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-08 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-09 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-10 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-11 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| TC-12 | | | | | | | |
|-------------+-----------+--------------+-------+----------+----------+---------------+--------|
| Identifier + Name | 2.1 Standort mieten |
|-------------------+-----------------------------------------------|
| Description | Der Use Case beschreibt das mieten der |
| | Standorte als Test Member. |
|-------------------+-----------------------------------------------|
| Actors | User mit test_member Status |
|-------------------+-----------------------------------------------|
| Status | Freigegeben |
|-------------------+-----------------------------------------------|
| Includes | - |
|-------------------+-----------------------------------------------|
| Trigger | |
|-------------------+-----------------------------------------------|
| Preconditions | UC 1.1 und 2.0 erfolgreich abgeschlossen |
|-------------------+-----------------------------------------------|
| Postconditions | Miete wurde erfolgreich in DB eingetragen. |
|-------------------+-----------------------------------------------|
| Normal Flow | 1. User wählt einen Standort aus |
| | 2. User wählt das Datum aus an dem er den |
| | Standort gerne mieten möchte. |
| | 3. User bestätigt die Miete mit klick auf |
| | den Insert Button. |
|-------------------+-----------------------------------------------|
| Alternative Flow | 1. User wählt einen Standort aus |
| | 2. User wählt das Datum an dem er den |
| | Standort gerne mieten möchte. |
| | 3. User bestätigt die Miete mit klick auf |
| | den Insert Button. |
| | 4. Die Applikation meldet zurück das der |
| | Standort an diesem Datum bereits besetzt ist. |
|-------------------+-----------------------------------------------|
| Notes | - |
|-------------------+-----------------------------------------------|
| UC History | 1.0 Darft erstellt durch AZ |
|-------------------+-----------------------------------------------|
| Author | A. Zweili & I. Cadaroski |
|-------------------+-----------------------------------------------|
| Date | 27. Juli 2017 |
|-------------------+-----------------------------------------------|
| Identifier + Name | 2.2 Mieten anzeigen |
|-------------------+-----------------------------------------------|
| Description | Der Use Case beschreibt das Betrachten der |
| | getätigten Mieten des aktuellen Users. |
|-------------------+-----------------------------------------------|
| Actors | User mit test_member Status |
|-------------------+-----------------------------------------------|
| Status | Freigegeben |
|-------------------+-----------------------------------------------|
| Includes | - |
|-------------------+-----------------------------------------------|
| Trigger | User möchte sich seine Mieten anzeigen lassen |
|-------------------+-----------------------------------------------|
| Preconditions | UC 1.1, 2.1 erfolgreich abgeschlossen |
|-------------------+-----------------------------------------------|
| Postconditions | Applikation gibt die Mieten des aktuellen |
| | Users aus. |
|-------------------+-----------------------------------------------|
| Normal Flow | 1. User klickt auf "update" |
| | 2. Die Applikation gibt die Details zu den |
| | Mieten des Users aus. |
|-------------------+-----------------------------------------------|
| Alternative Flow | - |
|-------------------+-----------------------------------------------|
| Notes | - |
|-------------------+-----------------------------------------------|
| UC History | 1.0 Darft erstellt durch AZ |
|-------------------+-----------------------------------------------|
| Author | A. Zweili & I. Cadaroski |
|-------------------+-----------------------------------------------|
| Date | 27. Juli 2017 |
|-------------------+-----------------------------------------------|
| Testcase | Objective | Precondition | Steps | Testdata | Expected | Postcondition | Result |
| ID | | | | | Result | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-01 | Registrierung am System | | 1. Öffnen des Programms | Username: maxmuster@gmail.com | Erfolgreiche | User registriert | Am Anfang |
| | | | 2. Eingeben des Usernamens | Passwort: 123456 | Registrierung | | fehlte noch |
| | | | 3. Eingeben des Passworts | | | | eine Catch |
| | | | 4. Klicken des "Register" | | | | Funktion was |
| | | | Knopf | | | | die Applikation |
| | | | | | | | zum abstürzen |
| | | | | | | | brachte. |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-02 | Registrierung am System | TC-01 ausgeführt. | 1. Öffnen des Programms | | | | |
| | | | 2. Eingeben des Usernamens | | | | |
| | | | 3. Eingeben des Passworts | | | | |
| | | | 4. Klicken des "Register" | | | | |
| | | | Knopf | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-03 | Anmeldung am System | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-04 | Anmeldung am System | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-05 | Anmeldung am System | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-06 | Standorte anzeigen | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-07 | Standort mieten | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-08 | Mieten anzeigen | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-09 | | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-10 | | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-11 | | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|
| TC-12 | | | | | | | |
|----------+-------------------------+-------------------+----------------------------+-------------------------------+---------------+------------------+-----------------|

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -0,0 +1,14 @@
@startuml
skinparam dpi 300
class Dashboard {
+ Dashboard()
- void UpdateBinding()
- void LocationSearchButton_Click()
- void LocationInsertButton_Click()
- void RentInsertButton_Click()
- void Dashboard_Load()
- void ShowRentButton_Click()
- void ShowRentListBox_SelectedIndexChanged()
- void LoggedInUser_Click()
}
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -0,0 +1,12 @@
@startuml
skinparam dpi 300
class DataAccess {
+ SqlConnection connection
+ List<GetLocations> GetLocations()
+ void CurrentUser()
+ void InsertRent()
+ void InsertMember()
# List<GetRents> GetRentedLocations()
+ void CheckLogin()
}
@enduml

Binary file not shown.

BIN
doku/diagrammes/erm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Some files were not shown because too many files have changed in this diff Show More