diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs index b812a59..f1c4807 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.Designer.cs @@ -170,6 +170,7 @@ this.ShowRentListBox.Name = "ShowRentListBox"; this.ShowRentListBox.Size = new System.Drawing.Size(629, 244); this.ShowRentListBox.TabIndex = 28; + this.ShowRentListBox.SelectedIndexChanged += new System.EventHandler(this.ShowRentListBox_SelectedIndexChanged); // // ShowRentLabel // diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs index 1286881..f10d4ca 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/Dashboard.cs @@ -136,6 +136,11 @@ namespace db_AI_4 UpdateBinding(); } + + private void ShowRentListBox_SelectedIndexChanged(object sender, EventArgs e) + { + + } //Add Location to ADDBox end } diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs index 542fd4c..106254c 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/DataAccess.cs @@ -87,7 +87,9 @@ namespace db_AI_4 } } + //Registration function end + //Read Rented locations start internal List GetRentedLocations(string LocationName) { using (IDbConnection connection = new System.Data.SqlClient.SqlConnection(Helper.CnnVal("marketdb"))) @@ -98,9 +100,8 @@ namespace db_AI_4 } } - - //Registration function end + //Read Rented locations end diff --git a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs index 8200cb0..b971fdb 100644 --- a/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs +++ b/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/GetRents.cs @@ -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} "; } }