Browse Source

8 задание

Kuzmenco 1 year ago
parent
commit
484c430404

BIN
.vs/bobrovTounApp/v16/.suo


+ 1 - 2
MainWindow.xaml.cs

@@ -24,7 +24,7 @@ namespace bobrovTounApp
         public MainWindow(object MainFrame)
         {
             InitializeComponent();
-
+         
            
         }
 
@@ -60,7 +60,6 @@ namespace bobrovTounApp
                 {
 
 
-
                 }
                 
              

+ 10 - 0
Properties/Resources.Designer.cs

@@ -69,5 +69,15 @@ namespace bobrovTounApp.Properties {
                 return ((System.Drawing.Bitmap)(obj));
             }
         }
+        
+        /// <summary>
+        ///   Поиск локализованного ресурса типа System.Drawing.Bitmap.
+        /// </summary>
+        internal static System.Drawing.Bitmap dom {
+            get {
+                object obj = ResourceManager.GetObject("dom", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
     }
 }

+ 3 - 0
Properties/Resources.resx

@@ -118,6 +118,9 @@
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  <data name="dom" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\Resources\dom.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
   <data name="_8" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\8.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>

BIN
Resources/dom.jpg


+ 58 - 0
ToursPage.xaml

@@ -0,0 +1,58 @@
+<Page x:Class="bobrovTounApp.ToursPge" 
+      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+      xmlns:local="clr-namespace:bobrovTounApp"
+      mc:Ignorable="d" 
+      d:DesignHeight="450" d:DesignWidth="800"
+      Title="ToursPage">
+
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="auto"></RowDefinition>
+            <RowDefinition Height="*"></RowDefinition>
+      </Grid.RowDefinitions>
+        <ListView Grid.Row="1" Name="LViewToure" Margin="10,0,-10,0">
+            <ListView.ItemTemplate>
+                <DataTemplate>
+                    <Grid Margin="20" Width="400">
+                        <Grid.RowDefinitions>
+                            <RowDefinition Height="70"></RowDefinition>
+                            <RowDefinition Height="310"></RowDefinition>
+                            <RowDefinition Height="auto"></RowDefinition>
+                            <RowDefinition Height="auto"></RowDefinition>
+                        </Grid.RowDefinitions>
+                        <Image Width="400" Grid.Row="1" Stretch="UniformToFill" HorizontalAlignment="Center" Margin="5"></Image>
+                        <Image Margin="134,127,-4854,-2697" Grid.Row="1" Grid.RowSpan="3" Source="dom.jpg" Stretch="Fill"/>
+                    
+                        <Image Height="500" Source="dom.jpg" Stretch="Fill" Width="400"/>
+                        <TextBlock VerticalAlignment="Center"  TextAlignment="Center" Width="390"
+                                                           TextWrapping="Wrap" HorizontalAlignment="Center" FontSize="26" FontWeight="Bold"></TextBlock>
+                        <TextBlock Grid.Row="3" FontSize="14" HorizontalAlignment="Right"></TextBlock>
+                        <TextBlock Grid.Row="3" FontSize="14" HorizontalAlignment="Left"></TextBlock>
+
+                        <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center"></WrapPanel>
+                            <StackPanel Orientation="Horizontal"></StackPanel>
+                        <TextBlock Text="введите название для поиска:" Width="175" TextAlignment="Right"></TextBlock>
+                        <TextBlock Width="225" Name="TBoxSearch" >></TextBlock>
+                        <StackPanel>
+                            <StackPanel Orientation="Horizontal">
+                                <TextBlock Text="выбери тип" Width="175" TextAlignment="Right"></TextBlock>
+                                <ComboBox Width="225" Name="CheckActual_Checked" HorizontalAlignment="Center"></ComboBox>
+                            </StackPanel>
+                            
+                        </StackPanel>
+                    </Grid>
+                     
+                    
+                    
+                </DataTemplate>
+                
+            </ListView.ItemTemplate>
+            
+
+        </ListView>
+        
+    </Grid>
+</Page>

+ 35 - 0
ToursPage.xaml.cs

@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace bobrovTounApp
+{
+    /// <summary>
+    /// Логика взаимодействия для ToursPage.xaml
+    /// </summary>
+    public partial class ToursPage : Page
+    {
+        public ToursPage()
+        {
+            InitializeComponent();
+            
+            
+        }
+
+        private void InitializeComponent()
+        {
+            throw new NotImplementedException();
+        }
+    }
+}

+ 9 - 0
bobrovTounApp.csproj

@@ -95,6 +95,9 @@
       <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
     <Compile Include="ToursBaseEntities.cs" />
+    <Compile Include="ToursPage.xaml.cs">
+      <DependentUpon>ToursPage.xaml</DependentUpon>
+    </Compile>
     <Compile Include="type.cs">
       <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
@@ -124,6 +127,10 @@
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
+    <Page Include="ToursPage.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Model1.Context.cs">
@@ -182,6 +189,7 @@
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>
   <ItemGroup>
+    <Resource Include="dom.jpg" />
     <Content Include="Model1.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
       <DependentUpon>Model1.edmx</DependentUpon>
@@ -192,6 +200,7 @@
       <DependentUpon>Model1.edmx</DependentUpon>
       <LastGenOutput>Model1.cs</LastGenOutput>
     </Content>
+    <Resource Include="Resources\dom.jpg" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

BIN
dom.jpg


BIN
obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
obj/Debug/TempPE/Properties.Resources.Designer.cs.dll


+ 89 - 0
obj/Debug/ToursPage.g.i.cs

@@ -0,0 +1,89 @@
+#pragma checksum "..\..\ToursPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F34007B0AE6C07F954C4E6EC8D3FCF63FB65E4BEE298E4070F924E181CE9179C"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using bobrovTounApp;
+
+
+namespace bobrovTounApp {
+    
+    
+    /// <summary>
+    /// ToursPge
+    /// </summary>
+    public partial class ToursPge : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 16 "..\..\ToursPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListView LViewToure;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/bobrovTounApp;component/tourspage.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\ToursPage.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LViewToure = ((System.Windows.Controls.ListView)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
obj/Debug/bobrovTounApp.csproj.AssemblyReference.cache


+ 3 - 3
obj/Debug/bobrovTounApp_MarkupCompile.i.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\App.xaml
-3-1875146385
+4-1060276735
 21750853300
-21-1772863204
+221550557509
 19-650210546
-AddEditPage.xaml;HotelsPage.xaml;MainWindow.xaml;
+AddEditPage.xaml;HotelsPage.xaml;MainWindow.xaml;ToursPage.xaml;
 
 True
 

+ 1 - 1
obj/Debug/bobrovTounApp_MarkupCompile.i.lref

@@ -1,4 +1,4 @@
 
 
-FC:\Users\user2\Desktop\бобров\прога\bobrovTounApp\HotelsPage.xaml;;
+FC:\Users\user2\Desktop\бобров\прога\bobrovTounApp\ToursPage.xaml;;