3 день преди 2 години
родител
ревизия
2f995d12b1
променени са 6 файла, в които са добавени 60 реда и са изтрити 1 реда
  1. 14 0
      TestForDemo/BaseConnect.cs
  2. 14 0
      TestForDemo/LoadPage.cs
  3. 6 1
      TestForDemo/MainWindow.xaml
  4. 3 0
      TestForDemo/MainWindow.xaml.cs
  5. 20 0
      TestForDemo/PartClass.cs
  6. 3 0
      TestForDemo/TestForDemo.csproj

+ 14 - 0
TestForDemo/BaseConnect.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestForDemo
+{
+    internal class BaseConnect
+    {
+        public static Entities BaseModel = new Entities();
+
+    }
+}

+ 14 - 0
TestForDemo/LoadPage.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Controls;
+
+namespace TestForDemo
+{
+    internal class LoadPage
+    {
+        public static Frame Mainframe;
+    }
+}

+ 6 - 1
TestForDemo/MainWindow.xaml

@@ -7,6 +7,11 @@
         mc:Ignorable="d"
         Title="MainWindow" Height="450" Width="800">
     <Grid>
-        
+        <Grid.RowDefinitions>
+            <RowDefinition Height="100"/>
+            <RowDefinition Height="*"/>
+        </Grid.RowDefinitions>
+
+        <Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" Grid.Row="1"/>
     </Grid>
 </Window>

+ 3 - 0
TestForDemo/MainWindow.xaml.cs

@@ -23,6 +23,9 @@ namespace TestForDemo
         public MainWindow()
         {
             InitializeComponent();
+            LoadPage.Mainframe = MainFrame;
+            MainFrame.Navigate(new );
+
         }
     }
 }

+ 20 - 0
TestForDemo/PartClass.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestForDemo
+{
+    public partial class PartClass
+    {
+        private string imggField;
+
+        public string imgg
+        {
+            get { return this.imggField; }
+            set { this.imggField = value; }
+        }
+
+    }
+}

+ 3 - 0
TestForDemo/TestForDemo.csproj

@@ -63,12 +63,15 @@
       <DependentUpon>App.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
+    <Compile Include="BaseConnect.cs" />
+    <Compile Include="LoadPage.cs" />
     <Compile Include="MainWindow.xaml.cs">
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="PartClass.cs" />
     <Compile Include="Properties\AssemblyInfo.cs">
       <SubType>Code</SubType>
     </Compile>