Преглед на файлове

Добавьте файлы проекта.

ПрытовИЕ преди 8 месеца
родител
ревизия
544c226273

+ 25 - 0
UPtur.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.6.33829.357
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UPtur", "UPtur\UPtur.csproj", "{97D70331-7590-48EB-8100-8F6341750384}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{97D70331-7590-48EB-8100-8F6341750384}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{97D70331-7590-48EB-8100-8F6341750384}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{97D70331-7590-48EB-8100-8F6341750384}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{97D70331-7590-48EB-8100-8F6341750384}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {27F80069-6E73-49DF-863A-068FBF308EF5}
+	EndGlobalSection
+EndGlobal

+ 10 - 0
UPtur/App.axaml

@@ -0,0 +1,10 @@
+<Application xmlns="https://github.com/avaloniaui"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             x:Class="UPtur.App"
+             RequestedThemeVariant="Default">
+             <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
+  
+    <Application.Styles>
+        <FluentTheme />
+    </Application.Styles>
+</Application>

+ 29 - 0
UPtur/App.axaml.cs

@@ -0,0 +1,29 @@
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+using UPtur.ViewModels;
+using UPtur.Views;
+
+namespace UPtur
+{
+    public partial class App : Application
+    {
+        public override void Initialize()
+        {
+            AvaloniaXamlLoader.Load(this);
+        }
+
+        public override void OnFrameworkInitializationCompleted()
+        {
+            if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+            {
+                desktop.MainWindow = new MainWindow
+                {
+                    DataContext = new MainWindowViewModel(),
+                };
+            }
+
+            base.OnFrameworkInitializationCompleted();
+        }
+    }
+}

BIN
UPtur/Assets/avalonia-logo.ico


+ 13 - 0
UPtur/Models/Country.cs

@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class Country
+{
+    public string Code { get; set; } = null!;
+
+    public string Name { get; set; } = null!;
+
+    public virtual ICollection<Hotel> Hotels { get; set; } = new List<Hotel>();
+}

+ 25 - 0
UPtur/Models/Hotel.cs

@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class Hotel
+{
+    public int Id { get; set; }
+
+    public string Name { get; set; } = null!;
+
+    public int CountOfStars { get; set; }
+
+    public string CountryCode { get; set; } = null!;
+
+    public string? Description { get; set; }
+
+    public virtual Country CountryCodeNavigation { get; set; } = null!;
+
+    public virtual ICollection<HotelComment> HotelComments { get; set; } = new List<HotelComment>();
+
+    public virtual ICollection<HotelImage> HotelImages { get; set; } = new List<HotelImage>();
+
+    public virtual ICollection<HotelOfTour> HotelOfTours { get; set; } = new List<HotelOfTour>();
+}

+ 19 - 0
UPtur/Models/HotelComment.cs

@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class HotelComment
+{
+    public int Id { get; set; }
+
+    public int HotelId { get; set; }
+
+    public string Text { get; set; } = null!;
+
+    public string Author { get; set; } = null!;
+
+    public DateOnly CreationDate { get; set; }
+
+    public virtual Hotel Hotel { get; set; } = null!;
+}

+ 15 - 0
UPtur/Models/HotelImage.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class HotelImage
+{
+    public int Id { get; set; }
+
+    public int HotelId { get; set; }
+
+    public byte[] ImageSource { get; set; } = null!;
+
+    public virtual Hotel Hotel { get; set; } = null!;
+}

+ 17 - 0
UPtur/Models/HotelOfTour.cs

@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class HotelOfTour
+{
+    public int HotelId { get; set; }
+
+    public int TourId { get; set; }
+
+    public int Id { get; set; }
+
+    public virtual Hotel Hotel { get; set; } = null!;
+
+    public virtual Tour Tour { get; set; } = null!;
+}

+ 24 - 0
UPtur/Models/Program.cs

@@ -0,0 +1,24 @@
+using Avalonia;
+using Avalonia.ReactiveUI;
+using System;
+
+namespace UPtur.Models
+{
+    internal sealed class Program
+    {
+        // Initialization code. Don't use any Avalonia, third-party APIs or any
+        // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
+        // yet and stuff might break.
+        [STAThread]
+        public static void Main(string[] args) => BuildAvaloniaApp()
+            .StartWithClassicDesktopLifetime(args);
+
+        // Avalonia configuration, don't remove; also used by visual designer.
+        public static AppBuilder BuildAvaloniaApp()
+            => AppBuilder.Configure<App>()
+                .UsePlatformDetect()
+                .WithInterFont()
+                .LogToTrace()
+                .UseReactiveUI();
+    }
+}

+ 26 - 0
UPtur/Models/Tour.cs

@@ -0,0 +1,26 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class Tour
+{
+    public int Id { get; set; }
+
+    public int TicketCount { get; set; }
+
+    public string Name { get; set; } = null!;
+
+    public string? Desription { get; set; }
+
+    public byte[]? ImagePreview { get; set; }
+
+    public decimal Price { get; set; }
+
+    public BitArray IsActual { get; set; } = null!;
+
+    public virtual ICollection<HotelOfTour> HotelOfTours { get; set; } = new List<HotelOfTour>();
+
+    public virtual ICollection<TypeOfTour> TypeOfTours { get; set; } = new List<TypeOfTour>();
+}

+ 15 - 0
UPtur/Models/Type.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class Type
+{
+    public int Id { get; set; }
+
+    public string Name { get; set; } = null!;
+
+    public string? Description { get; set; }
+
+    public virtual ICollection<TypeOfTour> TypeOfTours { get; set; } = new List<TypeOfTour>();
+}

+ 17 - 0
UPtur/Models/TypeOfTour.cs

@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+
+namespace UPtur.Models;
+
+public partial class TypeOfTour
+{
+    public int TourId { get; set; }
+
+    public int TypeId { get; set; }
+
+    public int Id { get; set; }
+
+    public virtual Tour Tour { get; set; } = null!;
+
+    public virtual Type Type { get; set; } = null!;
+}

+ 228 - 0
UPtur/Models/UpPrytovContext.cs

@@ -0,0 +1,228 @@
+using System;
+using System.Collections.Generic;
+using Microsoft.EntityFrameworkCore;
+
+namespace UPtur.Models;
+
+public partial class UpPrytovContext : DbContext
+{
+    public UpPrytovContext()
+    {
+    }
+
+    public UpPrytovContext(DbContextOptions<UpPrytovContext> options)
+        : base(options)
+    {
+    }
+
+    public virtual DbSet<Country> Countries { get; set; }
+
+    public virtual DbSet<Hotel> Hotels { get; set; }
+
+    public virtual DbSet<HotelComment> HotelComments { get; set; }
+
+    public virtual DbSet<HotelImage> HotelImages { get; set; }
+
+    public virtual DbSet<HotelOfTour> HotelOfTours { get; set; }
+
+    public virtual DbSet<Tour> Tours { get; set; }
+
+    public virtual DbSet<Type> Types { get; set; }
+
+    public virtual DbSet<TypeOfTour> TypeOfTours { get; set; }
+
+    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
+        => optionsBuilder.UseNpgsql("Host=edu.pg.ngknn.local;Port=5432;Database=UP_Prytov;Username=43P;Password=444444");
+
+    protected override void OnModelCreating(ModelBuilder modelBuilder)
+    {
+        modelBuilder.Entity<Country>(entity =>
+        {
+            entity.HasKey(e => e.Code).HasName("country_pk");
+
+            entity.ToTable("country");
+
+            entity.Property(e => e.Code)
+                .HasMaxLength(2)
+                .IsFixedLength()
+                .HasColumnName("code");
+            entity.Property(e => e.Name)
+                .HasColumnType("character varying")
+                .HasColumnName("name");
+        });
+
+        modelBuilder.Entity<Hotel>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("hotel_pk");
+
+            entity.ToTable("hotel");
+
+            entity.Property(e => e.Id)
+                .UseIdentityAlwaysColumn()
+                .HasColumnName("id");
+            entity.Property(e => e.CountOfStars).HasColumnName("count_of_stars");
+            entity.Property(e => e.CountryCode)
+                .HasMaxLength(2)
+                .IsFixedLength()
+                .HasColumnName("country_code");
+            entity.Property(e => e.Description)
+                .HasColumnType("character varying")
+                .HasColumnName("description");
+            entity.Property(e => e.Name)
+                .HasColumnType("character varying")
+                .HasColumnName("name");
+
+            entity.HasOne(d => d.CountryCodeNavigation).WithMany(p => p.Hotels)
+                .HasForeignKey(d => d.CountryCode)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("hotel_country_fk");
+        });
+
+        modelBuilder.Entity<HotelComment>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("hotel_comment_pk");
+
+            entity.ToTable("hotel_comment");
+
+            entity.Property(e => e.Id)
+                .UseIdentityAlwaysColumn()
+                .HasColumnName("id");
+            entity.Property(e => e.Author)
+                .HasColumnType("character varying")
+                .HasColumnName("author");
+            entity.Property(e => e.CreationDate).HasColumnName("creation_date");
+            entity.Property(e => e.HotelId).HasColumnName("hotel_id");
+            entity.Property(e => e.Text)
+                .HasColumnType("character varying")
+                .HasColumnName("text");
+
+            entity.HasOne(d => d.Hotel).WithMany(p => p.HotelComments)
+                .HasForeignKey(d => d.HotelId)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("hotel_comment_hotel_fk");
+        });
+
+        modelBuilder.Entity<HotelImage>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("hotel_image_pk");
+
+            entity.ToTable("hotel_image");
+
+            entity.Property(e => e.Id)
+                .ValueGeneratedNever()
+                .HasColumnName("id");
+            entity.Property(e => e.HotelId).HasColumnName("hotel_id");
+            entity.Property(e => e.ImageSource).HasColumnName("image_source");
+
+            entity.HasOne(d => d.Hotel).WithMany(p => p.HotelImages)
+                .HasForeignKey(d => d.HotelId)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("hotel_image_hotel_fk");
+        });
+
+        modelBuilder.Entity<HotelOfTour>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("hotel_of_tour_pk");
+
+            entity.ToTable("hotel_of_tour");
+
+            entity.Property(e => e.Id)
+                .UseIdentityAlwaysColumn()
+                .HasColumnName("id");
+            entity.Property(e => e.HotelId).HasColumnName("hotel_id");
+            entity.Property(e => e.TourId).HasColumnName("tour_id");
+
+            entity.HasOne(d => d.Hotel).WithMany(p => p.HotelOfTours)
+                .HasForeignKey(d => d.HotelId)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("hotel_of_tour_hotel_fk");
+
+            entity.HasOne(d => d.Tour).WithMany(p => p.HotelOfTours)
+                .HasForeignKey(d => d.TourId)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("hotel_of_tour_tour_fk");
+        });
+
+        modelBuilder.Entity<Tour>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("tour_pk");
+
+            entity.ToTable("tour");
+
+            entity.Property(e => e.Id)
+                .UseIdentityAlwaysColumn()
+                .HasColumnName("id");
+            entity.Property(e => e.Desription)
+                .HasColumnType("character varying")
+                .HasColumnName("desription");
+            entity.Property(e => e.ImagePreview).HasColumnName("image_preview");
+            entity.Property(e => e.IsActual)
+                .HasColumnType("bit(1)")
+                .HasColumnName("is_actual");
+            entity.Property(e => e.Name)
+                .HasColumnType("character varying")
+                .HasColumnName("name");
+            entity.Property(e => e.Price)
+                .HasColumnType("money")
+                .HasColumnName("price");
+            entity.Property(e => e.TicketCount).HasColumnName("ticket_count");
+        });
+
+        modelBuilder.Entity<Type>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("type_pk");
+
+            entity.ToTable("type");
+
+            entity.Property(e => e.Id)
+                .UseIdentityAlwaysColumn()
+                .HasColumnName("id");
+            entity.Property(e => e.Description)
+                .HasColumnType("character varying")
+                .HasColumnName("description");
+            entity.Property(e => e.Name)
+                .HasColumnType("character varying")
+                .HasColumnName("name");
+        });
+
+        modelBuilder.Entity<TypeOfTour>(entity =>
+        {
+            entity.HasKey(e => e.Id).HasName("type_of_tour_pk");
+
+            entity.ToTable("type_of_tour");
+
+            entity.Property(e => e.Id)
+                .UseIdentityAlwaysColumn()
+                .HasColumnName("id");
+            entity.Property(e => e.TourId).HasColumnName("tour_id");
+            entity.Property(e => e.TypeId).HasColumnName("type_id");
+
+            entity.HasOne(d => d.Tour).WithMany(p => p.TypeOfTours)
+                .HasForeignKey(d => d.TourId)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("type_of_tour_tour_fk");
+
+            entity.HasOne(d => d.Type).WithMany(p => p.TypeOfTours)
+                .HasForeignKey(d => d.TypeId)
+                .OnDelete(DeleteBehavior.ClientSetNull)
+                .HasConstraintName("type_of_tour_type_fk");
+        });
+        modelBuilder.HasSequence("hotel_comment_id_seq").HasMax(2147483647L);
+        modelBuilder.HasSequence("hotel_comment_id_seq1").HasMax(2147483647L);
+        modelBuilder.HasSequence("hotel_id_seq").HasMax(2147483647L);
+        modelBuilder.HasSequence("hotel_id_seq1").HasMax(2147483647L);
+        modelBuilder.HasSequence("hotel_of_tour_id_seq").HasMax(2147483647L);
+        modelBuilder.HasSequence("hotel_of_tour_id_seq1").HasMax(2147483647L);
+        modelBuilder.HasSequence("tour_id_seq").HasMax(2147483647L);
+        modelBuilder.HasSequence("tour_id_seq1").HasMax(2147483647L);
+        modelBuilder.HasSequence("type_id_seq").HasMax(2147483647L);
+        modelBuilder.HasSequence("type_id_seq1").HasMax(2147483647L);
+        modelBuilder.HasSequence("type_of_tour_id_seq").HasMax(2147483647L);
+        modelBuilder.HasSequence("type_of_tour_id_seq1").HasMax(2147483647L);
+
+        OnModelCreatingPartial(modelBuilder);
+    }
+
+    partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
+}

+ 30 - 0
UPtur/UPtur.csproj

@@ -0,0 +1,30 @@
+<Project Sdk="Microsoft.NET.Sdk">
+  <PropertyGroup>
+    <OutputType>WinExe</OutputType>
+    <TargetFramework>net7.0</TargetFramework>
+    <Nullable>enable</Nullable>
+    <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
+    <ApplicationManifest>app.manifest</ApplicationManifest>
+    <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <AvaloniaResource Include="Assets\**" />
+  </ItemGroup>
+
+
+  <ItemGroup>
+    <PackageReference Include="Avalonia" Version="11.0.10" />
+    <PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
+    <PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.10" />
+    <PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.10" />
+    <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
+    <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.10" />
+    <PackageReference Include="Avalonia.ReactiveUI" Version="11.0.10" />
+    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.14">
+      <PrivateAssets>all</PrivateAssets>
+      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+    </PackageReference>
+    <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.11" />
+  </ItemGroup>
+</Project>

+ 10 - 0
UPtur/ViewModels/HotelsViewModel.cs

@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using ReactiveUI;
+
+namespace UPtur.ViewModels
+{
+	public class HotelsViewModel : ReactiveObject
+	{
+	}
+}

+ 34 - 0
UPtur/ViewModels/MainWindowViewModel.cs

@@ -0,0 +1,34 @@
+using Avalonia.Controls;
+using ReactiveUI;
+using System;
+using System.Net;
+using UPtur.Models;
+using UPtur.Views;
+
+namespace UPtur.ViewModels
+{
+    public class MainWindowViewModel : ViewModelBase
+    {
+
+        public static UpPrytovContext DB = new UpPrytovContext();
+        UserControl us = new Views.PageNavigate();
+        public UserControl US
+        {
+            get => us;
+            set => this.RaiseAndSetIfChanged(ref us, value);
+        }
+
+        PageNavigateViewModel PN = new PageNavigateViewModel();
+
+        public void ChangePageToHotels()
+        {
+            US = new Hotels();
+        }
+        public void ChangePageToTours()
+        {
+            US = new Tours();
+        }
+    }
+
+    
+}

+ 10 - 0
UPtur/ViewModels/PageNavigateViewModel.cs

@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using ReactiveUI;
+
+namespace UPtur.ViewModels
+{
+	public class PageNavigateViewModel : ReactiveObject
+	{
+	}
+}

+ 10 - 0
UPtur/ViewModels/ToursViewModel.cs

@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using ReactiveUI;
+
+namespace UPtur.ViewModels
+{
+	public class ToursViewModel : ReactiveObject
+	{
+	}
+}

+ 8 - 0
UPtur/ViewModels/ViewModelBase.cs

@@ -0,0 +1,8 @@
+using ReactiveUI;
+
+namespace UPtur.ViewModels
+{
+    public class ViewModelBase : ReactiveObject
+    {
+    }
+}

+ 8 - 0
UPtur/Views/Hotels.axaml

@@ -0,0 +1,8 @@
+<UserControl xmlns="https://github.com/avaloniaui"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+             x:Class="UPtur.Views.Hotels">
+  Welcome to Avalonia!
+</UserControl>

+ 13 - 0
UPtur/Views/Hotels.axaml.cs

@@ -0,0 +1,13 @@
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace UPtur.Views;
+
+public partial class Hotels : UserControl
+{
+    public Hotels()
+    {
+        InitializeComponent();
+    }
+}

+ 20 - 0
UPtur/Views/MainWindow.axaml

@@ -0,0 +1,20 @@
+<Window xmlns="https://github.com/avaloniaui"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:vm="using:UPtur.ViewModels"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+        x:Class="UPtur.Views.MainWindow"
+        x:DataType="vm:MainWindowViewModel"
+        Icon="/Assets/avalonia-logo.ico"
+        Title="UPtur">
+
+    <Design.DataContext>
+        <!-- This only sets the DataContext for the previewer in an IDE,
+             to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
+        <vm:MainWindowViewModel/>
+    </Design.DataContext>
+
+    <TextBlock Text="{Binding US}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
+
+</Window>

+ 12 - 0
UPtur/Views/MainWindow.axaml.cs

@@ -0,0 +1,12 @@
+using Avalonia.Controls;
+
+namespace UPtur.Views
+{
+    public partial class MainWindow : Window
+    {
+        public MainWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 18 - 0
UPtur/Views/PageNavigate.axaml

@@ -0,0 +1,18 @@
+<UserControl xmlns="https://github.com/avaloniaui"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+			 xmlns:vm="using:UPtur.ViewModels"
+			 x:DataType="vm:MainWindowViewModel"
+             x:Class="UPtur.Views.PageNavigate">
+	<Grid>
+
+		<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"  >
+			<Button> Command="{Binding ChangePageToHotels}" </Button>
+			<Button> </Button>
+		</StackPanel>
+		
+	</Grid>
+  
+</UserControl>

+ 13 - 0
UPtur/Views/PageNavigate.axaml.cs

@@ -0,0 +1,13 @@
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace UPtur.Views;
+
+public partial class PageNavigate : UserControl
+{
+    public PageNavigate()
+    {
+        InitializeComponent();
+    }
+}

+ 8 - 0
UPtur/Views/Tours.axaml

@@ -0,0 +1,8 @@
+<UserControl xmlns="https://github.com/avaloniaui"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+             x:Class="UPtur.Views.Tours">
+  Welcome to Avalonia!
+</UserControl>

+ 13 - 0
UPtur/Views/Tours.axaml.cs

@@ -0,0 +1,13 @@
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace UPtur.Views;
+
+public partial class Tours : UserControl
+{
+    public Tours()
+    {
+        InitializeComponent();
+    }
+}

+ 18 - 0
UPtur/app.manifest

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
+  <!-- This manifest is used on Windows only.
+       Don't remove it as it might cause problems with window transparency and embedded controls.
+       For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
+  <assemblyIdentity version="1.0.0.0" name="UPtur.Desktop"/>
+
+  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+    <application>
+      <!-- A list of the Windows versions that this application has been tested on
+           and is designed to work with. Uncomment the appropriate elements
+           and Windows will automatically select the most compatible environment. -->
+
+      <!-- Windows 10 -->
+      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
+    </application>
+  </compatibility>
+</assembly>