Sfoglia il codice sorgente

Сделал таймер типа

Irina Filimonova 1 anno fa
parent
commit
d1abd5dd66
45 ha cambiato i file con 864 aggiunte e 72 eliminazioni
  1. 29 7
      src/DontHarmDesktop/App.xaml.cs
  2. 2 2
      src/DontHarmDesktop/Dictionaries/BrushesStyle.xaml
  3. 15 3
      src/DontHarmDesktop/DontHarmDesktop.csproj
  4. BIN
      src/DontHarmDesktop/Images/ProfilePictures/accountant.jpeg
  5. BIN
      src/DontHarmDesktop/Images/ProfilePictures/admin.png
  6. BIN
      src/DontHarmDesktop/Images/ProfilePictures/laborant_1.jpeg
  7. BIN
      src/DontHarmDesktop/Images/ProfilePictures/laborant_2.png
  8. 3 2
      src/DontHarmDesktop/MainWindow.xaml
  9. 1 1
      src/DontHarmDesktop/Pages/AuthPage.xaml.cs
  10. 4 4
      src/DontHarmDesktop/Pages/FooterPage.xaml
  11. 59 0
      src/DontHarmDesktop/Pages/FooterPage.xaml.cs
  12. 0 28
      src/DontHarmDesktop/Pages/NavigationPage.xaml.cs
  13. 15 0
      src/DontHarmDesktop/Pages/UserInfoPage.xaml
  14. 49 0
      src/DontHarmDesktop/Pages/UserInfoPage.xaml.cs
  15. 21 1
      src/DontHarmDesktop/Pages/WelcomePage.xaml
  16. 137 0
      src/DontHarmDesktop/Pages/WelcomePage.xaml.cs
  17. BIN
      src/DontHarmDesktop/bin/Debug/DontHarmDesktop.exe
  18. BIN
      src/DontHarmDesktop/bin/Debug/DontHarmDesktop.pdb
  19. BIN
      src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/accountant.jpeg
  20. BIN
      src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/admin.png
  21. BIN
      src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/laborant_1.jpeg
  22. BIN
      src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/laborant_2.png
  23. BIN
      src/DontHarmDesktop/obj/Debug/Dictionaries/BrushesStyle.baml
  24. 1 1
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop.csproj.CoreCompileInputs.cache
  25. 4 2
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop.csproj.FileListAbsolute.txt
  26. BIN
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop.exe
  27. BIN
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop.g.resources
  28. BIN
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop.pdb
  29. 3 3
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.cache
  30. 4 4
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.i.cache
  31. 5 0
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.i.lref
  32. 2 1
      src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.lref
  33. BIN
      src/DontHarmDesktop/obj/Debug/MainWindow.baml
  34. 3 3
      src/DontHarmDesktop/obj/Debug/MainWindow.g.cs
  35. 3 3
      src/DontHarmDesktop/obj/Debug/MainWindow.g.i.cs
  36. BIN
      src/DontHarmDesktop/obj/Debug/Pages/FooterPage.baml
  37. 19 5
      src/DontHarmDesktop/obj/Debug/Pages/FooterPage.g.cs
  38. 89 0
      src/DontHarmDesktop/obj/Debug/Pages/FooterPage.g.i.cs
  39. BIN
      src/DontHarmDesktop/obj/Debug/Pages/NavigationPage.baml
  40. BIN
      src/DontHarmDesktop/obj/Debug/Pages/UserInfoPage.baml
  41. 100 0
      src/DontHarmDesktop/obj/Debug/Pages/UserInfoPage.g.cs
  42. 100 0
      src/DontHarmDesktop/obj/Debug/Pages/UserInfoPage.g.i.cs
  43. BIN
      src/DontHarmDesktop/obj/Debug/Pages/WelcomePage.baml
  44. 98 1
      src/DontHarmDesktop/obj/Debug/Pages/WelcomePage.g.cs
  45. 98 1
      src/DontHarmDesktop/obj/Debug/Pages/WelcomePage.g.i.cs

+ 29 - 7
src/DontHarmDesktop/App.xaml.cs

@@ -1,4 +1,5 @@
-using System;
+using DontHarmDesktop.Properties;
+using System;
 using System.Collections.Generic;
 using System.Configuration;
 using System.Data;
@@ -16,23 +17,44 @@ namespace DontHarmDesktop
         public static Models.Entities Context { get; } = new Models.Entities();
         public static Models.users CurrentUser = null;
 
+        /// <summary>
+        /// Дата входа пользователя
+        /// </summary>
+        public static DateTime LogOnTime = new DateTime();
+
+        /// <summary>
+        /// Дата конца сеанса (только для лаборанта)
+        /// </summary>
+        public static DateTime LogOffTime = new DateTime();
+
         /// <summary>
         /// Авторизует пользователя
         /// </summary>
         /// <param name="login">Логин</param>
         /// <param name="password">Пароль</param>
-        /// <returns>True или False в зависимости от успешности</returns>
+        /// <returns>Успешна ли прошла авторизация</returns>
         public static bool LogOn(string login, string password)
         {
             var result = Context.users.FirstOrDefault(p => p.login == login && p.password == password);
-            if (result != null)
-            {
-                CurrentUser = result;
-                return true;
-            } else
+            if (result == null)
             {
                 return false;
             }
+            LogOnTime = DateTime.Now;
+
+            // Вычисление даты выхода кварцевания (2 минуты)
+            LogOffTime = LogOnTime + TimeSpan.FromSeconds(5);
+
+            CurrentUser = result;
+            return true;
+        }
+
+        /// <summary>
+        /// Выполняет выход пользователя
+        /// </summary>
+        public static void LogOff()
+        {
+            CurrentUser = null;
         }
     }
 }

+ 2 - 2
src/DontHarmDesktop/Dictionaries/BrushesStyle.xaml

@@ -1,6 +1,6 @@
 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
     <SolidColorBrush x:Key="MainColor" Color="White"/>
-    <SolidColorBrush x:Key="SecondaryColor" Color="Lime"/>
-    <SolidColorBrush x:Key="AccentColor" Color="Green"/>
+    <SolidColorBrush x:Key="SecondaryColor" Color="#76e383"/>
+    <SolidColorBrush x:Key="AccentColor" Color="#498c51"/>
 </ResourceDictionary>

+ 15 - 3
src/DontHarmDesktop/DontHarmDesktop.csproj

@@ -88,11 +88,15 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Pages\FooterPage.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="Pages\HeaderPage.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
-    <Page Include="Pages\NavigationPage.xaml">
+    <Page Include="Pages\UserInfoPage.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
@@ -153,11 +157,14 @@
     <Compile Include="Pages\AuthPage.xaml.cs">
       <DependentUpon>AuthPage.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Pages\FooterPage.xaml.cs">
+      <DependentUpon>FooterPage.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Pages\HeaderPage.xaml.cs">
       <DependentUpon>HeaderPage.xaml</DependentUpon>
     </Compile>
-    <Compile Include="Pages\NavigationPage.xaml.cs">
-      <DependentUpon>NavigationPage.xaml</DependentUpon>
+    <Compile Include="Pages\UserInfoPage.xaml.cs">
+      <DependentUpon>UserInfoPage.xaml</DependentUpon>
     </Compile>
     <Compile Include="Pages\WelcomePage.xaml.cs">
       <DependentUpon>WelcomePage.xaml</DependentUpon>
@@ -208,6 +215,10 @@
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>
   <ItemGroup>
+    <Resource Include="Images\ProfilePictures\accountant.jpeg" />
+    <Resource Include="Images\ProfilePictures\admin.png" />
+    <Resource Include="Images\ProfilePictures\laborant_1.jpeg" />
+    <Resource Include="Images\ProfilePictures\laborant_2.png" />
     <Content Include="Models\DontHarmModel.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
       <DependentUpon>DontHarmModel.edmx</DependentUpon>
@@ -219,5 +230,6 @@
       <LastGenOutput>DontHarmModel.cs</LastGenOutput>
     </Content>
   </ItemGroup>
+  <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

BIN
src/DontHarmDesktop/Images/ProfilePictures/accountant.jpeg


BIN
src/DontHarmDesktop/Images/ProfilePictures/admin.png


BIN
src/DontHarmDesktop/Images/ProfilePictures/laborant_1.jpeg


BIN
src/DontHarmDesktop/Images/ProfilePictures/laborant_2.png


+ 3 - 2
src/DontHarmDesktop/MainWindow.xaml

@@ -6,8 +6,9 @@
         xmlns:local="clr-namespace:DontHarmDesktop"
         mc:Ignorable="d"
         Title="MainWindow" Height="450" Width="800">
+
     <StackPanel>
-        <Frame x:Name="HeaderFrame" Source="/Pages/HeaderPage.xaml"></Frame>
-        <Frame x:Name="MainFrame" Source="/Pages/AuthPage.xaml"></Frame>
+        <Frame x:Name="HeaderFrame" Source="/Pages/HeaderPage.xaml" NavigationUIVisibility="Hidden"></Frame>
+        <Frame x:Name="MainFrame" Source="/Pages/AuthPage.xaml" NavigationUIVisibility="Hidden"></Frame>
     </StackPanel>
 </Window>

+ 1 - 1
src/DontHarmDesktop/Pages/AuthPage.xaml.cs

@@ -40,7 +40,7 @@ namespace DontHarmDesktop.Pages
 
         private void AuthorizeButton_Click(object sender, RoutedEventArgs e)
         {
-            bool success = App.LogOn(LoginTextBox.Text, PasswordPasswordBox.Password);
+            var success = App.LogOn(LoginTextBox.Text, PasswordPasswordBox.Password);
             if (success)
             {
                 NavigationService.Navigate(new WelcomePage());

+ 4 - 4
src/DontHarmDesktop/Pages/NavigationPage.xaml → src/DontHarmDesktop/Pages/FooterPage.xaml

@@ -1,4 +1,4 @@
-<Page x:Class="DontHarmDesktop.Pages.NavigationPage"
+<Page x:Class="DontHarmDesktop.Pages.FooterPage"
       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" 
@@ -6,9 +6,9 @@
       xmlns:local="clr-namespace:DontHarmDesktop.Pages"
       mc:Ignorable="d" 
       d:DesignHeight="450" d:DesignWidth="800"
-      Title="NavigationPage">
+      Title="FooterPage">
 
-    <StackPanel>
-        
+    <StackPanel Orientation="Horizontal">
+        <Label Name="TimerLabel"></Label>
     </StackPanel>
 </Page>

+ 59 - 0
src/DontHarmDesktop/Pages/FooterPage.xaml.cs

@@ -0,0 +1,59 @@
+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;
+using System.Windows.Threading;
+
+namespace DontHarmDesktop.Pages
+{
+    /// <summary>
+    /// Логика взаимодействия для FooterPage.xaml
+    /// </summary>
+    public partial class FooterPage : Page
+    {
+        DispatcherTimer timer = new DispatcherTimer();
+
+        public FooterPage()
+        {
+            InitializeComponent();
+
+            // Создание таймера (если роль лаборант или лаборант-исследователь)
+            
+            if (App.CurrentUser.role == 3 || App.CurrentUser.role == 4)
+            {
+                timer.Tick += Timer_Tick;
+                timer.Interval = new TimeSpan(0,0,1);
+                timer.Start();
+            }
+        }
+
+        /// <summary>
+        /// callback таймера
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void Timer_Tick(object sender, EventArgs e)
+        {
+            // Проверяем закончилось ли время
+            // Проверку роли не выполняем, т.к. таймер даже не начинается если роль не подходит
+            if (DateTime.Now > App.LogOffTime)
+            {
+                App.LogOff();
+                var main_frame = Application.Current.MainWindow.FindName("MainFrame") as Frame;
+                //var frame = Window.GetWindow().FindName("MainFrame") as Frame;
+                main_frame.Navigate(new AuthPage());
+                timer.Stop();
+            }
+        }
+    }
+}

+ 0 - 28
src/DontHarmDesktop/Pages/NavigationPage.xaml.cs

@@ -1,28 +0,0 @@
-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 DontHarmDesktop.Pages
-{
-    /// <summary>
-    /// Логика взаимодействия для NavigationPage.xaml
-    /// </summary>
-    public partial class NavigationPage : Page
-    {
-        public NavigationPage()
-        {
-            InitializeComponent();
-        }
-    }
-}

+ 15 - 0
src/DontHarmDesktop/Pages/UserInfoPage.xaml

@@ -0,0 +1,15 @@
+<Page x:Class="DontHarmDesktop.Pages.UserInfoPage"
+      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:DontHarmDesktop.Pages"
+      mc:Ignorable="d" 
+      d:DesignHeight="450" d:DesignWidth="800"
+      Title="NavigationPage">
+
+    <StackPanel Orientation="Horizontal">
+        <Image x:Name="ProfilePictureImage" Source="{Binding Path=ProfileImagePath}" Width="64" Height="64"/>
+        <TextBlock x:Name="GreetingTextBlock"/>
+    </StackPanel>
+</Page>

+ 49 - 0
src/DontHarmDesktop/Pages/UserInfoPage.xaml.cs

@@ -0,0 +1,49 @@
+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;
+using static System.Net.Mime.MediaTypeNames;
+
+namespace DontHarmDesktop.Pages
+{
+    /// <summary>
+    /// Логика взаимодействия для UserInfoPage.xaml
+    /// </summary>
+    public partial class UserInfoPage : Page
+    {
+        private string UserImagePath;
+        public UserInfoPage()
+        {
+            InitializeComponent();
+            DataContext = this;
+
+            Models.users current_user = App.CurrentUser;
+
+            UserImagePath = current_user.image_path;
+
+            // Получение названия роли
+            Models.roles role = App.Context.roles.First(r => r.id == current_user.role);
+
+            GreetingTextBlock.Text = $"Добро пожаловать, {current_user.surname} {current_user.name} {current_user.patronymic} ({role.name})";
+            //ProfilePictureImage.Source = new BitmapImage( new Uri("pack://application:,,,/Images/ProfilePictures/" + current_user.image_path, UriKind.Absolute));
+        }
+
+        public string ProfileImagePath
+        {
+            get
+            {
+                return "/Images/ProfilePictures/" + UserImagePath;
+            }
+        }
+    }
+}

+ 21 - 1
src/DontHarmDesktop/Pages/WelcomePage.xaml

@@ -10,6 +10,26 @@
       ShowsNavigationUI="False">
 
     <StackPanel>
-        <Frame Source="/Pages/NavigationPage.xaml"/>
+        <Frame Source="/Pages/UserInfoPage.xaml"/>
+        <Grid>
+            <Grid.RowDefinitions>
+                <RowDefinition/>
+                <RowDefinition/>
+                <RowDefinition/>
+                <RowDefinition/>
+                <RowDefinition/>
+                <RowDefinition/>
+                <RowDefinition/>
+            </Grid.RowDefinitions>
+            <Label Visibility="{Binding Path=AcceptWasteVisibility}" Name="AcceptWasteLabel" Grid.Row="0"><Hyperlink>Принять отходы</Hyperlink></Label>
+            <Label Visibility="{Binding Path=MakeReportsVisibility}" Name="MakeReportsLabel" Grid.Row="1"><Hyperlink>Сформировать отчёты</Hyperlink></Label>
+            <Label Visibility="{Binding Path=UtilizerVisibility}" Name="UtilizerLabel" Grid.Row="2"><Hyperlink>Работа с утилизатором</Hyperlink></Label>
+            <Label Visibility="{Binding Path=ViewReportsVisibility}" Name="ViewReportsLabel" Grid.Row="3"><Hyperlink>Просмотреть отчёты</Hyperlink></Label>
+            <Label Visibility="{Binding Path=MakeInvoiceVisibility}" Name="MakeInvoiceLabel" Grid.Row="4"><Hyperlink>Сформировать счёт предприятию</Hyperlink></Label>
+            <Label Visibility="{Binding Path=LoginHistoryVisibility}" Name="LoginHistoryLabel" Grid.Row="5"><Hyperlink>Просмотр истории входа</Hyperlink></Label>
+            <Label Visibility="{Binding Path=UsageVisibility}" Name="UsageLabel" Grid.Row="6"><Hyperlink>Просмотр расходов</Hyperlink></Label>
+        </Grid>
+        <Button Click="LogoffButton_Click" Name="LogoffButton">Выход</Button>
+        <Frame Source="/Pages/FooterPage.xaml"/>
     </StackPanel>
 </Page>

+ 137 - 0
src/DontHarmDesktop/Pages/WelcomePage.xaml.cs

@@ -23,6 +23,143 @@ namespace DontHarmDesktop.Pages
         public WelcomePage()
         {
             InitializeComponent();
+            this.DataContext = this;
+        }
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки принятия отходов
+        /// </summary>
+        public Visibility AcceptWasteVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 3)
+                {
+                    return Visibility.Visible;
+                } else { 
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки работы с утилизатором
+        /// </summary>
+        public Visibility UtilizerVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 4)
+                {
+                    return Visibility.Visible;
+                }
+                else
+                {
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки формирования отчётов
+        /// </summary>
+        public Visibility MakeReportsVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 3 || App.CurrentUser.role == 1)
+                {
+                    return Visibility.Visible;
+                }
+                else
+                {
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки просмотра отчётов
+        /// </summary>
+        public Visibility ViewReportsVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 2)
+                {
+                    return Visibility.Visible;
+                }
+                else
+                {
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки формирования счёта предприятию
+        /// </summary>
+        public Visibility MakeInvoiceVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 2)
+                {
+                    return Visibility.Visible;
+                }
+                else
+                {
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки просмотра истории логинов
+        /// </summary>
+        public Visibility LoginHistoryVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 1)
+                {
+                    return Visibility.Visible;
+                }
+                else
+                {
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+        /// <summary>
+        /// Конвертор роли в видимость ссылки просмотра расходов
+        /// </summary>
+        public Visibility UsageVisibility
+        {
+            get
+            {
+                if (App.CurrentUser.role == 1)
+                {
+                    return Visibility.Visible;
+                }
+                else
+                {
+                    return Visibility.Collapsed;
+                }
+            }
+        }
+
+        /// <summary>
+        /// Клик кнопки выхода
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void LogoffButton_Click(object sender, RoutedEventArgs e)
+        {
+            App.LogOff();
+            NavigationService.Navigate(new AuthPage());
         }
     }
 }

BIN
src/DontHarmDesktop/bin/Debug/DontHarmDesktop.exe


BIN
src/DontHarmDesktop/bin/Debug/DontHarmDesktop.pdb


BIN
src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/accountant.jpeg


BIN
src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/admin.png


BIN
src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/laborant_1.jpeg


BIN
src/DontHarmDesktop/bin/Debug/Images/ProfilePictures/laborant_2.png


BIN
src/DontHarmDesktop/obj/Debug/Dictionaries/BrushesStyle.baml


+ 1 - 1
src/DontHarmDesktop/obj/Debug/DontHarmDesktop.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-49d009a2fbb1f44e184896c8492f09fd456b1e17
+064eb22275b089ffcb4c962531d8ce4bdc8f2093

+ 4 - 2
src/DontHarmDesktop/obj/Debug/DontHarmDesktop.csproj.FileListAbsolute.txt

@@ -45,7 +45,6 @@ D:\DontHarm\src\DontHarmDesktop\obj\Debug\Dictionaries\MainStyle.baml
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\MainWindow.g.cs
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\AuthPage.g.cs
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\HeaderPage.g.cs
-D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\NavigationPage.g.cs
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\WelcomePage.g.cs
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\App.g.cs
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop_Content.g.cs
@@ -55,7 +54,6 @@ D:\DontHarm\src\DontHarmDesktop\obj\Debug\App.baml
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\MainWindow.baml
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\AuthPage.baml
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\HeaderPage.baml
-D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\NavigationPage.baml
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\WelcomePage.baml
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop.g.resources
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop.Properties.Resources.resources
@@ -64,3 +62,7 @@ D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop.csproj.CoreCompileInpu
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop.csproj.CopyComplete
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop.exe
 D:\DontHarm\src\DontHarmDesktop\obj\Debug\DontHarmDesktop.pdb
+D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\UserInfoPage.g.cs
+D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\UserInfoPage.baml
+D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\FooterPage.g.cs
+D:\DontHarm\src\DontHarmDesktop\obj\Debug\Pages\FooterPage.baml

BIN
src/DontHarmDesktop/obj/Debug/DontHarmDesktop.exe


BIN
src/DontHarmDesktop/obj/Debug/DontHarmDesktop.g.resources


BIN
src/DontHarmDesktop/obj/Debug/DontHarmDesktop.pdb


+ 3 - 3
src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 D:\DontHarm\src\DontHarmDesktop\App.xaml
-7907122951
+81773210148
 2362307431
-23-592534208
+24-1833787069
 18-700310825
-Dictionaries\BrushesStyle.xaml;Dictionaries\MainStyle.xaml;MainWindow.xaml;Pages\AuthPage.xaml;Pages\HeaderPage.xaml;Pages\NavigationPage.xaml;Pages\WelcomePage.xaml;
+Dictionaries\BrushesStyle.xaml;Dictionaries\MainStyle.xaml;MainWindow.xaml;Pages\AuthPage.xaml;Pages\FooterPage.xaml;Pages\HeaderPage.xaml;Pages\UserInfoPage.xaml;Pages\WelcomePage.xaml;
 
 False
 

+ 4 - 4
src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.i.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 D:\DontHarm\src\DontHarmDesktop\App.xaml
-7907122951
+81773210148
 2362307431
-241620344470
+25379091609
 18-700310825
-Dictionaries\BrushesStyle.xaml;Dictionaries\MainStyle.xaml;MainWindow.xaml;Pages\AuthPage.xaml;Pages\HeaderPage.xaml;Pages\NavigationPage.xaml;Pages\WelcomePage.xaml;
+Dictionaries\BrushesStyle.xaml;Dictionaries\MainStyle.xaml;MainWindow.xaml;Pages\AuthPage.xaml;Pages\FooterPage.xaml;Pages\HeaderPage.xaml;Pages\UserInfoPage.xaml;Pages\WelcomePage.xaml;
 
-False
+True
 

+ 5 - 0
src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.i.lref

@@ -0,0 +1,5 @@
+
+
+FD:\DontHarm\src\DontHarmDesktop\Pages\FooterPage.xaml;;
+FD:\DontHarm\src\DontHarmDesktop\Pages\WelcomePage.xaml;;
+

+ 2 - 1
src/DontHarmDesktop/obj/Debug/DontHarmDesktop_MarkupCompile.lref

@@ -3,6 +3,7 @@ FD:\DontHarm\src\DontHarmDesktop\App.xaml;;
 FD:\DontHarm\src\DontHarmDesktop\MainWindow.xaml;;
 FD:\DontHarm\src\DontHarmDesktop\Pages\AuthPage.xaml;;
 FD:\DontHarm\src\DontHarmDesktop\Pages\HeaderPage.xaml;;
-FD:\DontHarm\src\DontHarmDesktop\Pages\NavigationPage.xaml;;
+FD:\DontHarm\src\DontHarmDesktop\Pages\UserInfoPage.xaml;;
 FD:\DontHarm\src\DontHarmDesktop\Pages\WelcomePage.xaml;;
+FD:\DontHarm\src\DontHarmDesktop\Pages\FooterPage.xaml;;
 

BIN
src/DontHarmDesktop/obj/Debug/MainWindow.baml


+ 3 - 3
src/DontHarmDesktop/obj/Debug/MainWindow.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "27727B57B89F8FA2275F189CA3AB818AAC6EC29DF6DCD39FF39B67668A0CE2A6"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "395B01070733482342665AE62BF7E4DCD29F84B0040DE31AADC0F5398EDBD344"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,7 +41,7 @@ namespace DontHarmDesktop {
     public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
         
         
-        #line 10 "..\..\MainWindow.xaml"
+        #line 11 "..\..\MainWindow.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Frame HeaderFrame;
         
@@ -49,7 +49,7 @@ namespace DontHarmDesktop {
         #line hidden
         
         
-        #line 11 "..\..\MainWindow.xaml"
+        #line 12 "..\..\MainWindow.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Frame MainFrame;
         

+ 3 - 3
src/DontHarmDesktop/obj/Debug/MainWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "27727B57B89F8FA2275F189CA3AB818AAC6EC29DF6DCD39FF39B67668A0CE2A6"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "395B01070733482342665AE62BF7E4DCD29F84B0040DE31AADC0F5398EDBD344"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,7 +41,7 @@ namespace DontHarmDesktop {
     public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
         
         
-        #line 10 "..\..\MainWindow.xaml"
+        #line 11 "..\..\MainWindow.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Frame HeaderFrame;
         
@@ -49,7 +49,7 @@ namespace DontHarmDesktop {
         #line hidden
         
         
-        #line 11 "..\..\MainWindow.xaml"
+        #line 12 "..\..\MainWindow.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
         internal System.Windows.Controls.Frame MainFrame;
         

BIN
src/DontHarmDesktop/obj/Debug/Pages/FooterPage.baml


+ 19 - 5
src/DontHarmDesktop/obj/Debug/Pages/NavigationPage.g.cs → src/DontHarmDesktop/obj/Debug/Pages/FooterPage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\NavigationPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "68CAA56FAD591E8B63999D0B60F951E62FC528FD9B8E0177A0E5D986167AFA37"
+#pragma checksum "..\..\..\Pages\FooterPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5EDE52A19DD08EAAC0E7C1B8CD5B4B02F6DCED41FBFBE747F95C4660396998A4"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -36,9 +36,17 @@ namespace DontHarmDesktop.Pages {
     
     
     /// <summary>
-    /// NavigationPage
+    /// FooterPage
     /// </summary>
-    public partial class NavigationPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+    public partial class FooterPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\..\Pages\FooterPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label TimerLabel;
+        
+        #line default
+        #line hidden
         
         private bool _contentLoaded;
         
@@ -52,9 +60,9 @@ namespace DontHarmDesktop.Pages {
                 return;
             }
             _contentLoaded = true;
-            System.Uri resourceLocater = new System.Uri("/DontHarmDesktop;component/pages/navigationpage.xaml", System.UriKind.Relative);
+            System.Uri resourceLocater = new System.Uri("/DontHarmDesktop;component/pages/footerpage.xaml", System.UriKind.Relative);
             
-            #line 1 "..\..\..\Pages\NavigationPage.xaml"
+            #line 1 "..\..\..\Pages\FooterPage.xaml"
             System.Windows.Application.LoadComponent(this, resourceLocater);
             
             #line default
@@ -68,6 +76,12 @@ namespace DontHarmDesktop.Pages {
         [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.TimerLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            }
             this._contentLoaded = true;
         }
     }

+ 89 - 0
src/DontHarmDesktop/obj/Debug/Pages/FooterPage.g.i.cs

@@ -0,0 +1,89 @@
+#pragma checksum "..\..\..\Pages\FooterPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5EDE52A19DD08EAAC0E7C1B8CD5B4B02F6DCED41FBFBE747F95C4660396998A4"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using DontHarmDesktop.Pages;
+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;
+
+
+namespace DontHarmDesktop.Pages {
+    
+    
+    /// <summary>
+    /// FooterPage
+    /// </summary>
+    public partial class FooterPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\..\Pages\FooterPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label TimerLabel;
+        
+        #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("/DontHarmDesktop;component/pages/footerpage.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Pages\FooterPage.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.TimerLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
src/DontHarmDesktop/obj/Debug/Pages/NavigationPage.baml


BIN
src/DontHarmDesktop/obj/Debug/Pages/UserInfoPage.baml


+ 100 - 0
src/DontHarmDesktop/obj/Debug/Pages/UserInfoPage.g.cs

@@ -0,0 +1,100 @@
+#pragma checksum "..\..\..\Pages\UserInfoPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2750E3CA8744AB4FA6AEAA64F65DED0CE5B1173C586FF3B2B4B4C4FC9884C5BE"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using DontHarmDesktop.Pages;
+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;
+
+
+namespace DontHarmDesktop.Pages {
+    
+    
+    /// <summary>
+    /// UserInfoPage
+    /// </summary>
+    public partial class UserInfoPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\..\Pages\UserInfoPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image ProfilePictureImage;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\..\Pages\UserInfoPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock GreetingTextBlock;
+        
+        #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("/DontHarmDesktop;component/pages/userinfopage.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Pages\UserInfoPage.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.ProfilePictureImage = ((System.Windows.Controls.Image)(target));
+            return;
+            case 2:
+            this.GreetingTextBlock = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 100 - 0
src/DontHarmDesktop/obj/Debug/Pages/UserInfoPage.g.i.cs

@@ -0,0 +1,100 @@
+#pragma checksum "..\..\..\Pages\UserInfoPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2750E3CA8744AB4FA6AEAA64F65DED0CE5B1173C586FF3B2B4B4C4FC9884C5BE"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using DontHarmDesktop.Pages;
+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;
+
+
+namespace DontHarmDesktop.Pages {
+    
+    
+    /// <summary>
+    /// UserInfoPage
+    /// </summary>
+    public partial class UserInfoPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\..\Pages\UserInfoPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image ProfilePictureImage;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\..\Pages\UserInfoPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock GreetingTextBlock;
+        
+        #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("/DontHarmDesktop;component/pages/userinfopage.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Pages\UserInfoPage.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.ProfilePictureImage = ((System.Windows.Controls.Image)(target));
+            return;
+            case 2:
+            this.GreetingTextBlock = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
src/DontHarmDesktop/obj/Debug/Pages/WelcomePage.baml


+ 98 - 1
src/DontHarmDesktop/obj/Debug/Pages/WelcomePage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\WelcomePage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CCD7B84D8586170D34593E7C51D438BB382D9215930FF5A358E52372973272BC"
+#pragma checksum "..\..\..\Pages\WelcomePage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "210A8868FB4779E3813E16576A29AFC86D1CDBBED2AC2C58A3D300632CC498DC"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -40,6 +40,70 @@ namespace DontHarmDesktop.Pages {
     /// </summary>
     public partial class WelcomePage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 24 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label AcceptWasteLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 25 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label MakeReportsLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 26 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label UtilizerLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 27 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label ViewReportsLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 28 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label MakeInvoiceLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label LoginHistoryLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 30 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label UsageLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 32 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button LogoffButton;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +132,39 @@ namespace DontHarmDesktop.Pages {
         [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.AcceptWasteLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 2:
+            this.MakeReportsLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 3:
+            this.UtilizerLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 4:
+            this.ViewReportsLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 5:
+            this.MakeInvoiceLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 6:
+            this.LoginHistoryLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 7:
+            this.UsageLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 8:
+            this.LogoffButton = ((System.Windows.Controls.Button)(target));
+            
+            #line 32 "..\..\..\Pages\WelcomePage.xaml"
+            this.LogoffButton.Click += new System.Windows.RoutedEventHandler(this.LogoffButton_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }

+ 98 - 1
src/DontHarmDesktop/obj/Debug/Pages/WelcomePage.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Pages\WelcomePage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CCD7B84D8586170D34593E7C51D438BB382D9215930FF5A358E52372973272BC"
+#pragma checksum "..\..\..\Pages\WelcomePage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "210A8868FB4779E3813E16576A29AFC86D1CDBBED2AC2C58A3D300632CC498DC"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -40,6 +40,70 @@ namespace DontHarmDesktop.Pages {
     /// </summary>
     public partial class WelcomePage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 24 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label AcceptWasteLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 25 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label MakeReportsLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 26 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label UtilizerLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 27 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label ViewReportsLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 28 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label MakeInvoiceLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label LoginHistoryLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 30 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Label UsageLabel;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 32 "..\..\..\Pages\WelcomePage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button LogoffButton;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +132,39 @@ namespace DontHarmDesktop.Pages {
         [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.AcceptWasteLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 2:
+            this.MakeReportsLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 3:
+            this.UtilizerLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 4:
+            this.ViewReportsLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 5:
+            this.MakeInvoiceLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 6:
+            this.LoginHistoryLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 7:
+            this.UsageLabel = ((System.Windows.Controls.Label)(target));
+            return;
+            case 8:
+            this.LogoffButton = ((System.Windows.Controls.Button)(target));
+            
+            #line 32 "..\..\..\Pages\WelcomePage.xaml"
+            this.LogoffButton.Click += new System.Windows.RoutedEventHandler(this.LogoffButton_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }