diff --git a/Hotel/Hotel.sln b/Hotel/Hotel.sln new file mode 100644 index 0000000..62723af --- /dev/null +++ b/Hotel/Hotel.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34622.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelView", "HotelView\HotelView.csproj", "{6178B3A4-FD96-4706-BA98-85A1B348544F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelDataModels", "HotelDataModels\HotelDataModels.csproj", "{CA43CA92-EB41-4E16-AE45-8D6E72819F8C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6178B3A4-FD96-4706-BA98-85A1B348544F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6178B3A4-FD96-4706-BA98-85A1B348544F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6178B3A4-FD96-4706-BA98-85A1B348544F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6178B3A4-FD96-4706-BA98-85A1B348544F}.Release|Any CPU.Build.0 = Release|Any CPU + {CA43CA92-EB41-4E16-AE45-8D6E72819F8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CA43CA92-EB41-4E16-AE45-8D6E72819F8C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CA43CA92-EB41-4E16-AE45-8D6E72819F8C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CA43CA92-EB41-4E16-AE45-8D6E72819F8C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3793E76F-8B82-4165-87C1-D36D8FF3309C} + EndGlobalSection +EndGlobal diff --git a/Hotel/HotelDataModels/HotelDataModels.csproj b/Hotel/HotelDataModels/HotelDataModels.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/Hotel/HotelDataModels/HotelDataModels.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/Hotel/HotelDataModels/IId.cs b/Hotel/HotelDataModels/IId.cs new file mode 100644 index 0000000..aeae8a9 --- /dev/null +++ b/Hotel/HotelDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace HotelDataModels +{ + public interface IId + { + int Id { get; } + } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IConferenceBookingModel.cs b/Hotel/HotelDataModels/Models/IConferenceBookingModel.cs new file mode 100644 index 0000000..c74edc0 --- /dev/null +++ b/Hotel/HotelDataModels/Models/IConferenceBookingModel.cs @@ -0,0 +1,8 @@ +namespace HotelDataModels.Models +{ + public interface IConferenceBookingModel : IId + { + int ConferenceId { get; } + int HeadwaiterId { get; } + } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IHeadwaiterModel.cs b/Hotel/HotelDataModels/Models/IHeadwaiterModel.cs new file mode 100644 index 0000000..e942c12 --- /dev/null +++ b/Hotel/HotelDataModels/Models/IHeadwaiterModel.cs @@ -0,0 +1,13 @@ +namespace HotelDataModels.Models +{ + public interface IHeadwaiterModel : IId + { + string HeadwaiterSurname { get; } + string HeadwaiterName { get; } + string HeadwaiterPatronymic { get; } + string HeadwaiterLogin { get; } + string HeadwaiterPassword { get; } + string HeadwaiterEmail { get; } + string HeadwaiterPhoneNumber { get; } + } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/ILunchModel.cs b/Hotel/HotelDataModels/Models/ILunchModel.cs new file mode 100644 index 0000000..c0e167f --- /dev/null +++ b/Hotel/HotelDataModels/Models/ILunchModel.cs @@ -0,0 +1,9 @@ +namespace HotelDataModels.Models +{ + public interface ILunchModel : IId + { + string LunchName { get; } + double LunchPrice { get; } + int HeadwaiterId { get; } + } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IRoomModel.cs b/Hotel/HotelDataModels/Models/IRoomModel.cs new file mode 100644 index 0000000..df0fd5f --- /dev/null +++ b/Hotel/HotelDataModels/Models/IRoomModel.cs @@ -0,0 +1,11 @@ +namespace HotelDataModels.Models +{ + public interface IRoomModel : IId + { + string RoomName { get; } + string RoomFrame { get; } + double RoomPrice { get; } + int MealPlanId { get; } + int HeadwaiterId { get; } + } +} \ No newline at end of file diff --git a/Hotel/HotelView/Form1.Designer.cs b/Hotel/HotelView/Form1.Designer.cs new file mode 100644 index 0000000..bbb0897 --- /dev/null +++ b/Hotel/HotelView/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace HotelView +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} diff --git a/Hotel/HotelView/Form1.cs b/Hotel/HotelView/Form1.cs new file mode 100644 index 0000000..8738002 --- /dev/null +++ b/Hotel/HotelView/Form1.cs @@ -0,0 +1,10 @@ +namespace HotelView +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} diff --git a/Hotel/HotelView/Form1.resx b/Hotel/HotelView/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Hotel/HotelView/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Hotel/HotelView/HotelView.csproj b/Hotel/HotelView/HotelView.csproj new file mode 100644 index 0000000..663fdb8 --- /dev/null +++ b/Hotel/HotelView/HotelView.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/Hotel/HotelView/Program.cs b/Hotel/HotelView/Program.cs new file mode 100644 index 0000000..552f291 --- /dev/null +++ b/Hotel/HotelView/Program.cs @@ -0,0 +1,17 @@ +namespace HotelView +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file