helper1012 1.0.0

dotnet add package helper1012 --version 1.0.0
NuGet\Install-Package helper1012 -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="helper1012" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add helper1012 --version 1.0.0
#r "nuget: helper1012, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install helper1012 as a Cake Addin
#addin nuget:?package=helper1012&version=1.0.0

// Install helper1012 as a Cake Tool
#tool nuget:?package=helper1012&version=1.0.0

private List<Apartments> apartments;
       private readonly HotelManagementEntities db;

       public CatalogWindow()
       {
           InitializeComponent();
           db = new HotelManagementEntities();
           LoadApartments();
       }

       private void LoadApartments()
       {
           apartments = db.Apartments.ToList();
           lvApartments.ItemsSource = apartments;
       }

       private void btnSort_Click(object sender, RoutedEventArgs e)
       {
           string sortBy = (cmbSortBy.SelectedItem as ComboBoxItem)?.Content.ToString();

           switch (sortBy)
           {
               case "Room Number":
                   apartments = apartments.OrderBy(a => a.RoomNumber).ToList();
                   break;
               case "Category":
                   apartments = apartments.OrderBy(a => a.Category).ToList();
                   break;
               case "Price":
                   apartments = apartments.OrderBy(a => a.PricePerNight).ToList();
                   break;
               default:
                   break;
           }
           lvApartments.ItemsSource = apartments;
       }

Product Compatible and additional computed target framework versions.
.NET net5.0-windows7.0 is compatible.  net6.0-windows was computed.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 85 5/24/2024