Add DashboardWindow, controlls to close the login than open the dashboard
1
Mockup/DashboardWindow.drawio
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<mxfile host="app.diagrams.net" modified="2021-04-04T19:20:18.464Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36" etag="diIpK7dsfyokdrjZ82IB" version="14.5.7" type="device"><diagram id="UBeI6YBNYhGgj7EGWcJK" name="Page-1">7Vpdb6M4FP01eWwENgT6mM+Zh5mdlbLS7lvlgBOsEszYziTtr18bTMKHySQpNJU6jVTg2hhzzvG9vjcZwOn28IWhNPpOQxwPgBUeBnA2AABYIyAPyvKSW2x75OSWDSOhtp0MS/KKtdHS1h0JMa90FJTGgqRVY0CTBAeiYkOM0X2125rG1aemaIMbhmWA4qb1XxKKKLf6wDvZv2KyicTx/R7zli0qOus34REK6b5kgvMBnDJKRX62PUxxrNArcMnvW7S0HifGcCIuueHXjyc+8fZ/OZ6foh+WReHr/kGP8gvFO/3CerLipUCA0V0SYjWINYCTfUQEXqYoUK17Sbq0RWIbyytbnq5pIqY0piy7F66zP2UncVyyO647lkKAEy4YfcalFsuaLMbusaXAXKI12cSIcz0N/oxFEBUXBbLqQr8QZgIfWpGyj/hL5WK6xYK9yC76BkczpjULCwb3JwHYwNLGqMS+XxiRVt3mOPaJGHmiubmCJ9AxT1XcE5pgBTBDIcG/J1B37wDpOtSOZYDaMkHtgb6ghgaoR7HQ4s5cTQHP6OdOrV6JBFz56lM2lbgpjGqAB575uLHsIJE6lO8YbdTxv+Jxcvb5E3P7Gxfm2QVYLDPVM8WMSCQxU4ORZFMsMpNiOpDAaSWdWW6OQQGwLwE4HQmgoC2/l6couV0UTyVR5CNVR/8kWrG9D6YVtxe/XIbYiGWNIdcZzb1xP8HPNQY/u4mx2xfGow+BMRhBAP1eMDZFPeP+or+g593k8yxrtUZu01tNGUYCy7sSvJf/Z4hHK4pYeL23sq+lE5xhrn2z2QGnbo1T27BufAOnvS0bv1NKZzjGGaXosxLq3ZvQx04JnYdEfFIqXXhvKgvn0M7lb/eJtl/dJ7bsStfq02R/iZlE9Bb+JQviglwSxWSTyMsYr1V3RR8JUDzW5i0JQzWiUUDVaN49/xC4l/HfW7gFJv5rQPMIpeqUbLMSVRnxOpqCpiXrN7TC8d+UE0Goal1RIehWdohVwwQFz5sMYVOanz1szNO8lKbgR8XFmhwUJxM9n1kkhKrBjRUSYBGEiTUkAU3WRHLHhoF8IliESMh4sVB2Lo+Yc8kYQTFXzmxhAxmjFk9PSyyETB74gzQMU5VF1CRQKfC0l4GuqCX1U86o68xt6syUnTi9ycxU3rslZFyYtmb+peZpJjjZiVfMErTF7xRj2oVgoL1wVCznoyqvsu4qWlPT18Vq0JGTsq1RTT4jQ5jy3jO7Bab09p31M6MB/8i6CSS9MpLeUTiP9aKI6w+9pucxBTgIhm5f2rkgbTeEtNbg1cD7gmhmjpMXEe9biwaRodwrlWNSFp63h4366mtIKPeyAMiHO55NsBrDWsOWQVv38i7wXZ1LVzWHW2uqX4j4ulv98S3nZOP7H9K3mGobb+Lrig1mZRtZQ7y+mWiyDh8n8zrrHVdwQS0eOIZ097j6K+lOfxvRZu3iH8zVGj8mot9puJPcvTHdPK6YNyScl4mhTn3tm++Jrz7tYUrPO2+lTKZM58vP0HM8Z3FngdygD3l5+olD1lb6pQic/w8=</diagram></mxfile>
|
||||||
@@ -2,9 +2,14 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="clr-namespace:Server_Dashboard"
|
xmlns:local="clr-namespace:Server_Dashboard"
|
||||||
|
xmlns:views="clr-namespace:Server_Dashboard.Views.DashboardPages"
|
||||||
StartupUri="LoginWindow.xaml">
|
StartupUri="LoginWindow.xaml">
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
|
|
||||||
|
<DataTemplate x:Key="MainDashboardView" DataType="{x:Type local:DashboardViewModel}">
|
||||||
|
<views:MainDashboardPage/>
|
||||||
|
</DataTemplate>
|
||||||
|
|
||||||
<RadialGradientBrush x:Key="LoginBackground" GradientOrigin="0.5, 0.5" Center="0.5, 0.5">
|
<RadialGradientBrush x:Key="LoginBackground" GradientOrigin="0.5, 0.5" Center="0.5, 0.5">
|
||||||
<RadialGradientBrush.GradientStops>
|
<RadialGradientBrush.GradientStops>
|
||||||
<GradientStop Color="#2A2D30" Offset="1"/>
|
<GradientStop Color="#2A2D30" Offset="1"/>
|
||||||
@@ -15,11 +20,20 @@
|
|||||||
<BooleanToVisibilityConverter x:Key="UserNameVisibillity"/>
|
<BooleanToVisibilityConverter x:Key="UserNameVisibillity"/>
|
||||||
<BooleanToVisibilityConverter x:Key="PasswordVisibillity"/>
|
<BooleanToVisibilityConverter x:Key="PasswordVisibillity"/>
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="600Gray" Color="#546E7A"/>
|
||||||
|
<SolidColorBrush x:Key="700Gray" Color="#455A64"/>
|
||||||
|
<SolidColorBrush x:Key="800Gray" Color="#37474F"/>
|
||||||
|
<SolidColorBrush x:Key="900Gray" Color="#263238"/>
|
||||||
|
<SolidColorBrush x:Key="1000Gray" Color="#152127"/>
|
||||||
|
<SolidColorBrush x:Key="950Gray" Color="#1D262A"/>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="Background" Color="#141424"/>
|
<SolidColorBrush x:Key="Background" Color="#141424"/>
|
||||||
<!--A700 Teal-->
|
<!--A700 Teal-->
|
||||||
<SolidColorBrush x:Key="Green" Color="#00BFA5"/>
|
<SolidColorBrush x:Key="Green" Color="#00BFA5"/>
|
||||||
<!--600 Light Blue-->
|
<!--600 Light Blue-->
|
||||||
<SolidColorBrush x:Key="Blue" Color="#039BE5"/>
|
<SolidColorBrush x:Key="Blue" Color="#039BE5"/>
|
||||||
|
<!--700 Light Blue-->
|
||||||
|
<SolidColorBrush x:Key="HighlightedBlue" Color="#0288D1"/>
|
||||||
<!--800 Light Blue-->
|
<!--800 Light Blue-->
|
||||||
<SolidColorBrush x:Key="PressedBlue" Color="#0277BD"/>
|
<SolidColorBrush x:Key="PressedBlue" Color="#0277BD"/>
|
||||||
<!--500 Yellow-->
|
<!--500 Yellow-->
|
||||||
@@ -148,5 +162,35 @@
|
|||||||
<Setter Property="FontSize" Value="14"/>
|
<Setter Property="FontSize" Value="14"/>
|
||||||
<Setter Property="Foreground" Value="{StaticResource ErrorRed}"/>
|
<Setter Property="Foreground" Value="{StaticResource ErrorRed}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="TopBarLinksButton" TargetType="{x:Type Button}">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource Blue}"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Margin" Value="5 5 10 5"/>
|
||||||
|
<Setter Property="Width" Value="Auto"/>
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource Blue}"/>
|
||||||
|
<Setter Property="FontSize" Value="25"/>
|
||||||
|
<Setter Property="FontFamily" Value="Arial"/>
|
||||||
|
<Setter Property="Cursor" Value="Hand"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="{x:Type Button}">
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter Property="Background" Value="{StaticResource PressedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource 950Gray}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
</Application>
|
</Application>
|
||||||
|
|||||||
BIN
Server Dashboard/Assets/Images/Docs.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
Server Dashboard/Assets/Images/DocsLight.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
Server Dashboard/Assets/Images/GitHub-Mark.zip
Normal file
BIN
Server Dashboard/Assets/Images/GitHub.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
Server Dashboard/Assets/Images/GitHubLight.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
Server Dashboard/Assets/Images/GreenSettings.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
Server Dashboard/Assets/Images/Settings.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
1
Server Dashboard/Assets/Images/Settings.svg
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
Server Dashboard/Assets/Images/SettingsLight.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
Server Dashboard/Assets/Images/User.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
Server Dashboard/Assets/Images/UserLight.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
@@ -16,5 +16,6 @@ namespace Server_Dashboard {
|
|||||||
public static Property GetValue(DependencyObject d) => (Property)d.GetValue(ValueProperty);
|
public static Property GetValue(DependencyObject d) => (Property)d.GetValue(ValueProperty);
|
||||||
public static void SetValue(DependencyObject d, Property value) => d.SetValue(ValueProperty, value);
|
public static void SetValue(DependencyObject d, Property value) => d.SetValue(ValueProperty, value);
|
||||||
public virtual void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { }
|
public virtual void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { }
|
||||||
|
public virtual void OnClose(DependencyObject sender, DependencyPropertyChangedEventArgs e) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,17 @@ namespace Server_Dashboard {
|
|||||||
SetValue(sender, ((PasswordBox)sender).SecurePassword.Length < 1);
|
SetValue(sender, ((PasswordBox)sender).SecurePassword.Length < 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public class CloseProperty : BaseAttachedProperty<CloseProperty, bool> {
|
||||||
|
public override void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) {
|
||||||
|
if(sender is Window window) {
|
||||||
|
window.Loaded += (s, e) => {
|
||||||
|
if(window.DataContext is IWindowHelper wh) {
|
||||||
|
wh.Close += () => {
|
||||||
|
window.Close();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
xmlns:local="clr-namespace:Server_Dashboard"
|
xmlns:local="clr-namespace:Server_Dashboard"
|
||||||
x:Name="Login"
|
x:Name="Login"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="Server Dashboard" Height="700" Width="500" WindowStyle="None" ResizeMode="NoResize" Background="Transparent" AllowsTransparency="True">
|
Title="Server Dashboard" Height="700" Width="500" WindowStyle="None" ResizeMode="NoResize" Background="Transparent" AllowsTransparency="True" local:CloseProperty.Value="True">
|
||||||
<Border Style="{StaticResource LoginViewBorder}">
|
<Border Style="{StaticResource LoginViewBorder}">
|
||||||
<Grid Grid.Row="0">
|
<Grid Grid.Row="0">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
|||||||
@@ -8,6 +8,17 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Remove="Assets\Images\Docs.png" />
|
||||||
|
<None Remove="Assets\Images\DocsLight.png" />
|
||||||
|
<None Remove="Assets\Images\GitHub-Mark.zip" />
|
||||||
|
<None Remove="Assets\Images\GitHub.png" />
|
||||||
|
<None Remove="Assets\Images\GitHubLight.png" />
|
||||||
|
<None Remove="Assets\Images\GreenSettings.png" />
|
||||||
|
<None Remove="Assets\Images\Settings.png" />
|
||||||
|
<None Remove="Assets\Images\Settings.svg" />
|
||||||
|
<None Remove="Assets\Images\SettingsLight.png" />
|
||||||
|
<None Remove="Assets\Images\User.png" />
|
||||||
|
<None Remove="Assets\Images\UserLight.png" />
|
||||||
<None Remove="Assets\Images\userlogin.png" />
|
<None Remove="Assets\Images\userlogin.png" />
|
||||||
<None Remove="Assets\Images\userpasswd.png" />
|
<None Remove="Assets\Images\userpasswd.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@@ -18,12 +29,19 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Resource Include="Assets\Images\Docs.png" />
|
||||||
|
<Resource Include="Assets\Images\DocsLight.png" />
|
||||||
|
<Resource Include="Assets\Images\GitHub-Mark.zip" />
|
||||||
|
<Resource Include="Assets\Images\GitHub.png" />
|
||||||
|
<Resource Include="Assets\Images\GitHubLight.png" />
|
||||||
|
<Resource Include="Assets\Images\GreenSettings.png" />
|
||||||
|
<Resource Include="Assets\Images\Settings.png" />
|
||||||
|
<Resource Include="Assets\Images\Settings.svg" />
|
||||||
|
<Resource Include="Assets\Images\SettingsLight.png" />
|
||||||
|
<Resource Include="Assets\Images\User.png" />
|
||||||
|
<Resource Include="Assets\Images\UserLight.png" />
|
||||||
<Resource Include="Assets\Images\userlogin.png" />
|
<Resource Include="Assets\Images\userlogin.png" />
|
||||||
<Resource Include="Assets\Images\userpasswd.png" />
|
<Resource Include="Assets\Images\userpasswd.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Views\" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -6,9 +6,23 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</ApplicationDefinition>
|
</ApplicationDefinition>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="Views\DashboardPages\MainDashboardPage.xaml.cs">
|
||||||
|
<SubType>Code</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Update="Views\DashboardWindow.xaml.cs">
|
||||||
|
<SubType>Code</SubType>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Update="LoginWindow.xaml">
|
<Page Update="LoginWindow.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
|
<Page Update="Views\DashboardPages\MainDashboardPage.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
|
<Page Update="Views\DashboardWindow.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</Page>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -3,6 +3,6 @@ using System.Collections.Generic;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Server_Dashboard {
|
namespace Server_Dashboard {
|
||||||
class MainViewModel : BaseViewModel {
|
class DashboardViewModel : BaseViewModel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
9
Server Dashboard/ViewModels/Interfaces/IWindowHelper.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace Server_Dashboard {
|
||||||
|
interface IWindowHelper {
|
||||||
|
Action Close { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
using System;
|
using Server_Dashboard.Views;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
|
||||||
namespace Server_Dashboard {
|
namespace Server_Dashboard {
|
||||||
class LoginViewModel : BaseViewModel {
|
class LoginViewModel : BaseViewModel, IWindowHelper {
|
||||||
|
|
||||||
private string username;
|
private string username;
|
||||||
|
|
||||||
@@ -28,7 +29,7 @@ namespace Server_Dashboard {
|
|||||||
OnPropertyChanged(nameof(errorText));
|
OnPropertyChanged(nameof(errorText));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public Action Close { get ; set; }
|
||||||
|
|
||||||
public LoginViewModel() {
|
public LoginViewModel() {
|
||||||
LoginCommand = new RelayCommand(Login);
|
LoginCommand = new RelayCommand(Login);
|
||||||
@@ -39,7 +40,10 @@ namespace Server_Dashboard {
|
|||||||
private void Login(object parameter) {
|
private void Login(object parameter) {
|
||||||
if (!String.IsNullOrWhiteSpace(Username) && !String.IsNullOrWhiteSpace((parameter as IHavePassword).SecurePassword.Unsecure())) {
|
if (!String.IsNullOrWhiteSpace(Username) && !String.IsNullOrWhiteSpace((parameter as IHavePassword).SecurePassword.Unsecure())) {
|
||||||
if (DatabaseHandler.CheckLogin(Username, (parameter as IHavePassword).SecurePassword.Unsecure())) {
|
if (DatabaseHandler.CheckLogin(Username, (parameter as IHavePassword).SecurePassword.Unsecure())) {
|
||||||
Console.WriteLine();
|
DashboardWindow window = new DashboardWindow();
|
||||||
|
window.DataContext = new DashboardViewModel();
|
||||||
|
window.Show();
|
||||||
|
Close?.Invoke();
|
||||||
} else {
|
} else {
|
||||||
ErrorText = "Username or password is wrong.";
|
ErrorText = "Username or password is wrong.";
|
||||||
return;
|
return;
|
||||||
|
|||||||
29
Server Dashboard/Views/DashboardPages/MainDashboardPage.xaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<UserControl x:Class="Server_Dashboard.Views.DashboardPages.MainDashboardPage"
|
||||||
|
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:Server_Dashboard.Views.DashboardPages" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="720" d:DesignWidth="1200">
|
||||||
|
|
||||||
|
<Grid Background="{StaticResource 700Gray}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<!--Dashboard and Options-->
|
||||||
|
<Grid Grid.Row="2">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="200"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid Grid.Column="0" Background="{StaticResource 900Gray}">
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<Grid Grid.Column="1" Background="{StaticResource 800Gray}">
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
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 Server_Dashboard.Views.DashboardPages {
|
||||||
|
/// <summary>
|
||||||
|
/// Interaktionslogik für MainDashboardPage.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainDashboardPage : UserControl {
|
||||||
|
public MainDashboardPage() {
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
144
Server Dashboard/Views/DashboardWindow.xaml
Normal file
@@ -0,0 +1,144 @@
|
|||||||
|
<Window x:Class="Server_Dashboard.Views.DashboardWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
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"
|
||||||
|
xmlns:local="clr-namespace:Server_Dashboard.Views"
|
||||||
|
xmlns:root="clr-namespace:Server_Dashboard"
|
||||||
|
xmlns:views="clr-namespace:Server_Dashboard.Views.DashboardPages" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Height="800" Width="1200" WindowStyle="None" AllowsTransparency="True" Background="Transparent" ResizeMode="CanResize">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="30"/>
|
||||||
|
<RowDefinition Height="50"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<!--Window Title-->
|
||||||
|
<Grid Grid.Row="0" Background="{StaticResource 1000Gray}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="40"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<i:Interaction.Triggers>
|
||||||
|
<i:EventTrigger EventName="MouseDown">
|
||||||
|
<i:CallMethodAction MethodName="DragMove" TargetObject="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}"/>
|
||||||
|
</i:EventTrigger>
|
||||||
|
</i:Interaction.Triggers>
|
||||||
|
<Label Grid.Column="0"/>
|
||||||
|
<Button Grid.Column="2" Style="{StaticResource CloseButton}" Content="✕">
|
||||||
|
<i:Interaction.Triggers>
|
||||||
|
<i:EventTrigger EventName="Click">
|
||||||
|
<i:CallMethodAction MethodName="Close" TargetObject="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}"/>
|
||||||
|
</i:EventTrigger>
|
||||||
|
</i:Interaction.Triggers>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<!--Settings, Docs, User, links etc-->
|
||||||
|
<Grid Grid.Row="1" x:Name="TopBarGrid" Background="{StaticResource 950Gray}" Loaded="Grid_Loaded">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Button Grid.Column="0" Style="{StaticResource TopBarLinksButton}">
|
||||||
|
<Button.Template>
|
||||||
|
<ControlTemplate TargetType="{x:Type Button}">
|
||||||
|
<Border x:Name="Border" CornerRadius="4" Padding="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
||||||
|
<Image x:Name="TopBarButtonImage" Source="../Assets/Images/SettingsLight.png" Height="Auto"/>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter Property="Background" Value="{StaticResource PressedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource 950Gray}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
<Setter TargetName="TopBarButtonImage" Property="Source" Value="../Assets/Images/Settings.png"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Button.Template>
|
||||||
|
</Button>
|
||||||
|
<Button Grid.Column="2" Content="GitHub" Style="{StaticResource TopBarLinksButton}">
|
||||||
|
<Button.Template>
|
||||||
|
<ControlTemplate TargetType="{x:Type Button}">
|
||||||
|
<Border x:Name="Border" CornerRadius="4" Padding="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Image x:Name="TopBarButtonImage" Source="../Assets/Images/GitHubLight.png" Height="{TemplateBinding FontSize}" Margin="0 0 5 0"/>
|
||||||
|
<TextBlock TextAlignment="Center" Padding="5" TextWrapping="Wrap" Text="GitHub" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter Property="Background" Value="{StaticResource PressedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource 950Gray}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
<Setter TargetName="TopBarButtonImage" Property="Source" Value="../Assets/Images/GitHub.png"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Button.Template>
|
||||||
|
</Button>
|
||||||
|
<Button Grid.Column="3" Content="Docs" Style="{StaticResource TopBarLinksButton}" Cursor="Hand">
|
||||||
|
<Button.Template>
|
||||||
|
<ControlTemplate TargetType="{x:Type Button}">
|
||||||
|
<Border x:Name="Border" CornerRadius="4" Padding="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Image x:Name="TopBarButtonImage" Source="../Assets/Images/DocsLight.png" Height="{TemplateBinding FontSize}" Margin="0 0 5 0"/>
|
||||||
|
<TextBlock TextAlignment="Center" Padding="5" TextWrapping="Wrap" Text="Docs" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter Property="Background" Value="{StaticResource PressedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource 950Gray}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
<Setter TargetName="TopBarButtonImage" Property="Source" Value="../Assets/Images/Docs.png"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Button.Template>
|
||||||
|
</Button>
|
||||||
|
<Button Grid.Column="4" Style="{StaticResource TopBarLinksButton}" Cursor="Hand">
|
||||||
|
<Button.Template>
|
||||||
|
<ControlTemplate TargetType="{x:Type Button}">
|
||||||
|
<Border x:Name="Border" CornerRadius="4" Padding="5" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Image x:Name="TopBarButtonImage" Source="../Assets/Images/UserLight.png" Height="{TemplateBinding FontSize}" Margin="0 0 5 0"/>
|
||||||
|
<TextBlock TextAlignment="Center" Padding="5" TextWrapping="Wrap" Text="{Binding UserName}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource HighlightedBlue}"/>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property="IsPressed" Value="True">
|
||||||
|
<Setter Property="Background" Value="{StaticResource PressedBlue}"/>
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource 950Gray}"/>
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||||
|
<Setter TargetName="TopBarButtonImage" Property="Source" Value="../Assets/Images/User.png"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Button.Template>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<UserControl Grid.Row="3">
|
||||||
|
<views:MainDashboardPage/>
|
||||||
|
</UserControl>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
28
Server Dashboard/Views/DashboardWindow.xaml.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
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.Shapes;
|
||||||
|
|
||||||
|
namespace Server_Dashboard.Views {
|
||||||
|
/// <summary>
|
||||||
|
/// Interaktionslogik für DashboardWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class DashboardWindow : Window {
|
||||||
|
public DashboardWindow() {
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Grid_Loaded(object sender, RoutedEventArgs e) {
|
||||||
|
foreach(Button b in TopBarGrid.Children) {
|
||||||
|
//b.Template.FindName("TopBarButtonImage")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "74B190EC288932EF98E3D09F645AFA4D89DB749F"
|
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3790BF7AC1FEBCA7C1BFE24826CAAF97064FFBB9"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
using Server_Dashboard;
|
using Server_Dashboard;
|
||||||
|
using Server_Dashboard.Views.DashboardPages;
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@@ -54,7 +55,7 @@ namespace Server_Dashboard {
|
|||||||
}
|
}
|
||||||
_contentLoaded = true;
|
_contentLoaded = true;
|
||||||
|
|
||||||
#line 5 "..\..\..\App.xaml"
|
#line 6 "..\..\..\App.xaml"
|
||||||
this.StartupUri = new System.Uri("LoginWindow.xaml", System.UriKind.Relative);
|
this.StartupUri = new System.Uri("LoginWindow.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "74B190EC288932EF98E3D09F645AFA4D89DB749F"
|
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3790BF7AC1FEBCA7C1BFE24826CAAF97064FFBB9"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
using Server_Dashboard;
|
using Server_Dashboard;
|
||||||
|
using Server_Dashboard.Views.DashboardPages;
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@@ -54,7 +55,7 @@ namespace Server_Dashboard {
|
|||||||
}
|
}
|
||||||
_contentLoaded = true;
|
_contentLoaded = true;
|
||||||
|
|
||||||
#line 5 "..\..\..\App.xaml"
|
#line 6 "..\..\..\App.xaml"
|
||||||
this.StartupUri = new System.Uri("LoginWindow.xaml", System.UriKind.Relative);
|
this.StartupUri = new System.Uri("LoginWindow.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
#line default
|
#line default
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DF7FEA542AE21C1D71DCD21AA55E8BDD50DAC57A"
|
#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "74C5CF69344AA8A08D7DBBF27D061122BEA1AF03"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DF7FEA542AE21C1D71DCD21AA55E8BDD50DAC57A"
|
#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "74C5CF69344AA8A08D7DBBF27D061122BEA1AF03"
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// Dieser Code wurde von einem Tool generiert.
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
f1717d53be58eb9a59391431391201bfbf17cc09
|
ece89445e697cb1e50fd0317657da76f7cb79821
|
||||||
|
|||||||
@@ -28,3 +28,7 @@ C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcor
|
|||||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Microsoft.Xaml.Behaviors.dll
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Microsoft.Xaml.Behaviors.dll
|
||||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\GeneratedInternalTypeHelper.g.cs
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\GeneratedInternalTypeHelper.g.cs
|
||||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Server Dashboard.dll.config
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Server Dashboard.dll.config
|
||||||
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Views\DashboardPages\MainDashboardPage.g.cs
|
||||||
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Views\DashboardWindow.g.cs
|
||||||
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Views\DashboardPages\MainDashboardPage.baml
|
||||||
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Views\DashboardWindow.baml
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ none
|
|||||||
false
|
false
|
||||||
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
|
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
|
||||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
|
||||||
1-1623698816
|
3-1865200846
|
||||||
|
|
||||||
151761447773
|
18-516599902
|
||||||
194-1159729825
|
194-1159729825
|
||||||
LoginWindow.xaml;
|
LoginWindow.xaml;Views\DashboardPages\MainDashboardPage.xaml;Views\DashboardWindow.xaml;
|
||||||
|
|
||||||
False
|
False
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ none
|
|||||||
false
|
false
|
||||||
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
|
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
|
||||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
|
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
|
||||||
1-1623698816
|
3-1865200846
|
||||||
|
|
||||||
17162120503
|
20-2115927172
|
||||||
194-1159729825
|
194-1159729825
|
||||||
LoginWindow.xaml;
|
LoginWindow.xaml;Views\DashboardPages\MainDashboardPage.xaml;Views\DashboardWindow.xaml;
|
||||||
|
|
||||||
False
|
False
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml;;
|
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml;;
|
||||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\LoginWindow.xaml;;
|
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\LoginWindow.xaml;;
|
||||||
|
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Views\DashboardPages\MainDashboardPage.xaml;;
|
||||||
|
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Views\DashboardWindow.xaml;;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
#pragma checksum "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4DCD8A1EBF9A7C22FF951DCD1B8475DB5518FEB1"
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using Microsoft.Xaml.Behaviors;
|
||||||
|
using Microsoft.Xaml.Behaviors.Core;
|
||||||
|
using Microsoft.Xaml.Behaviors.Input;
|
||||||
|
using Microsoft.Xaml.Behaviors.Layout;
|
||||||
|
using Microsoft.Xaml.Behaviors.Media;
|
||||||
|
using Server_Dashboard.Views.DashboardPages;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Automation;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Controls.Primitives;
|
||||||
|
using System.Windows.Controls.Ribbon;
|
||||||
|
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 Server_Dashboard.Views.DashboardPages {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// MainDashboardPage
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainDashboardPage : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||||
|
|
||||||
|
private bool _contentLoaded;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// InitializeComponent
|
||||||
|
/// </summary>
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
|
||||||
|
public void InitializeComponent() {
|
||||||
|
if (_contentLoaded) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_contentLoaded = true;
|
||||||
|
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/views/dashboardpages/maindashboardpage.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
|
#line 1 "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml"
|
||||||
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.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) {
|
||||||
|
this._contentLoaded = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
#pragma checksum "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4DCD8A1EBF9A7C22FF951DCD1B8475DB5518FEB1"
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using Microsoft.Xaml.Behaviors;
|
||||||
|
using Microsoft.Xaml.Behaviors.Core;
|
||||||
|
using Microsoft.Xaml.Behaviors.Input;
|
||||||
|
using Microsoft.Xaml.Behaviors.Layout;
|
||||||
|
using Microsoft.Xaml.Behaviors.Media;
|
||||||
|
using Server_Dashboard.Views.DashboardPages;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Automation;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Controls.Primitives;
|
||||||
|
using System.Windows.Controls.Ribbon;
|
||||||
|
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 Server_Dashboard.Views.DashboardPages {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// MainDashboardPage
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainDashboardPage : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||||
|
|
||||||
|
private bool _contentLoaded;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// InitializeComponent
|
||||||
|
/// </summary>
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
|
||||||
|
public void InitializeComponent() {
|
||||||
|
if (_contentLoaded) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_contentLoaded = true;
|
||||||
|
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/views/dashboardpages/maindashboardpage.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
|
#line 1 "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml"
|
||||||
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.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) {
|
||||||
|
this._contentLoaded = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
#pragma checksum "..\..\..\..\Views\DashboardWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CC63E1C662A7F2A9701079FC72F6D396960480BA"
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using Microsoft.Xaml.Behaviors;
|
||||||
|
using Microsoft.Xaml.Behaviors.Core;
|
||||||
|
using Microsoft.Xaml.Behaviors.Input;
|
||||||
|
using Microsoft.Xaml.Behaviors.Layout;
|
||||||
|
using Microsoft.Xaml.Behaviors.Media;
|
||||||
|
using Server_Dashboard;
|
||||||
|
using Server_Dashboard.Views;
|
||||||
|
using Server_Dashboard.Views.DashboardPages;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Automation;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Controls.Primitives;
|
||||||
|
using System.Windows.Controls.Ribbon;
|
||||||
|
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 Server_Dashboard.Views {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// DashboardWindow
|
||||||
|
/// </summary>
|
||||||
|
public partial class DashboardWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||||
|
|
||||||
|
|
||||||
|
#line 38 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Grid TopBarGrid;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
private bool _contentLoaded;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// InitializeComponent
|
||||||
|
/// </summary>
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
|
||||||
|
public void InitializeComponent() {
|
||||||
|
if (_contentLoaded) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_contentLoaded = true;
|
||||||
|
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/views/dashboardwindow.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
|
#line 1 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||||
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.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.TopBarGrid = ((System.Windows.Controls.Grid)(target));
|
||||||
|
|
||||||
|
#line 38 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||||
|
this.TopBarGrid.Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._contentLoaded = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
#pragma checksum "..\..\..\..\Views\DashboardWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CC63E1C662A7F2A9701079FC72F6D396960480BA"
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Dieser Code wurde von einem Tool generiert.
|
||||||
|
// Laufzeitversion:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
// der Code erneut generiert wird.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using Microsoft.Xaml.Behaviors;
|
||||||
|
using Microsoft.Xaml.Behaviors.Core;
|
||||||
|
using Microsoft.Xaml.Behaviors.Input;
|
||||||
|
using Microsoft.Xaml.Behaviors.Layout;
|
||||||
|
using Microsoft.Xaml.Behaviors.Media;
|
||||||
|
using Server_Dashboard;
|
||||||
|
using Server_Dashboard.Views;
|
||||||
|
using Server_Dashboard.Views.DashboardPages;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Automation;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Controls.Primitives;
|
||||||
|
using System.Windows.Controls.Ribbon;
|
||||||
|
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 Server_Dashboard.Views {
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// DashboardWindow
|
||||||
|
/// </summary>
|
||||||
|
public partial class DashboardWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||||
|
|
||||||
|
|
||||||
|
#line 38 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||||
|
internal System.Windows.Controls.Grid TopBarGrid;
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
|
||||||
|
private bool _contentLoaded;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// InitializeComponent
|
||||||
|
/// </summary>
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
|
||||||
|
public void InitializeComponent() {
|
||||||
|
if (_contentLoaded) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_contentLoaded = true;
|
||||||
|
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/views/dashboardwindow.xaml", System.UriKind.Relative);
|
||||||
|
|
||||||
|
#line 1 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||||
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.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.TopBarGrid = ((System.Windows.Controls.Grid)(target));
|
||||||
|
|
||||||
|
#line 38 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||||
|
this.TopBarGrid.Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded);
|
||||||
|
|
||||||
|
#line default
|
||||||
|
#line hidden
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._contentLoaded = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||