t
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -144,6 +144,7 @@
|
||||
<Setter Property="Foreground" Value="{StaticResource DeepPurple_A100}"/>
|
||||
<Setter Property="BorderThickness" Value="2"/>
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Button}">
|
||||
@@ -196,6 +197,7 @@
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="FontFamily" Value="{StaticResource Fontstyle}"/>
|
||||
<Setter Property="FontSize" Value="20"/>
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="Foreground">
|
||||
<Setter.Value>
|
||||
<SolidColorBrush Color="White" Opacity="0.64"/>
|
||||
@@ -216,6 +218,7 @@
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="FontFamily" Value="Arial"/>
|
||||
<Setter Property="FontSize" Value="20"/>
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="Foreground">
|
||||
<Setter.Value>
|
||||
<SolidColorBrush Color="White" Opacity="0.64"/>
|
||||
@@ -238,6 +241,7 @@
|
||||
<Setter Property="OverridesDefaultStyle" Value="true"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="Foreground" Value="White"/>
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Effect">
|
||||
<Setter.Value>
|
||||
@@ -251,7 +255,7 @@
|
||||
<BulletDecorator.Bullet>
|
||||
<Border Width="20" Height="20" CornerRadius="2" Background="#FF1B1B1B" BorderThickness="0">
|
||||
<Border x:Name="Border" Width="20" Height="20" CornerRadius="2" Background="Transparent" BorderThickness="0">
|
||||
<Path Width="9" Height="9" x:Name="CheckMark" SnapsToDevicePixels="False" Stroke="{StaticResource DeepPurple_200}" StrokeThickness="2" Data="M 0 4 L 3 8 8 0" />
|
||||
<Path Width="9" Height="9" x:Name="CheckMark" SnapsToDevicePixels="False" Stroke="{StaticResource DeepPurple_A100}" StrokeThickness="2" Data="M 0 4 L 3 8 8 0" />
|
||||
</Border>
|
||||
</Border>
|
||||
</BulletDecorator.Bullet>
|
||||
@@ -308,6 +312,18 @@
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!--Border default design (Makes text rendering in it crystal clear)-->
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="UseLayoutRounding" Value="True"/>
|
||||
</Style>
|
||||
|
||||
<!--Grid default design (Makes text rendering in it crystal clear)-->
|
||||
<Style TargetType="Grid">
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="UseLayoutRounding" Value="True"/>
|
||||
</Style>
|
||||
|
||||
<!--================-->
|
||||
<!--=CUSTOM DESIGNS=-->
|
||||
<!--================-->
|
||||
@@ -316,6 +332,7 @@
|
||||
<Style x:Key="CloseButton" TargetType="{x:Type Button}">
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||
<Setter Property="Foreground">
|
||||
<Setter.Value>
|
||||
<SolidColorBrush Color="White" Opacity="0.12"/>
|
||||
|
||||
@@ -16,6 +16,5 @@ namespace Server_Dashboard {
|
||||
public static Property GetValue(DependencyObject d) => (Property)d.GetValue(ValueProperty);
|
||||
public static void SetValue(DependencyObject d, Property value) => d.SetValue(ValueProperty, value);
|
||||
public virtual void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { }
|
||||
public virtual void OnClose(DependencyObject sender, DependencyPropertyChangedEventArgs e) { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,18 +4,18 @@
|
||||
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.DashboardPages.ModuleCRUD"
|
||||
xmlns:root="clr-namespace:Server_Dashboard"
|
||||
xmlns:root="clr-namespace:Server_Dashboard" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
d:DataContext="{d:DesignInstance Type=root:DashboardModuleViewModel}"
|
||||
mc:Ignorable="d"
|
||||
WindowStyle="None"
|
||||
ResizeMode="NoResize"
|
||||
Height="450"
|
||||
Width="300"
|
||||
Height="700"
|
||||
Width="500"
|
||||
AllowsTransparency="True"
|
||||
>
|
||||
<Border
|
||||
Width="300"
|
||||
Height="450"
|
||||
Width="500"
|
||||
Height="700"
|
||||
>
|
||||
<Border.Background>
|
||||
<SolidColorBrush Color="#2D2D2D" Opacity="1"/>
|
||||
@@ -40,14 +40,21 @@
|
||||
Grid.Column="0"
|
||||
Text="Create a new Server"
|
||||
Margin="5 0 0 0"
|
||||
Foreground="{StaticResource DeepPurple_200}"
|
||||
Foreground="{StaticResource DeepPurple_A100}"
|
||||
VerticalAlignment="Center"
|
||||
/>
|
||||
<Button
|
||||
Style="{StaticResource CloseButton}"
|
||||
Grid.Column="2"
|
||||
Content="✕"
|
||||
Command="{Binding ClosePopupCommand}"
|
||||
/>
|
||||
Cursor="Hand"
|
||||
>
|
||||
<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>
|
||||
<Grid
|
||||
Background="{StaticResource BackgroundSurface_04dp}"
|
||||
@@ -68,7 +75,7 @@
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock
|
||||
Text="Server Name"
|
||||
FontSize="16"
|
||||
FontSize="24"
|
||||
Margin="0 0 0 5"
|
||||
>
|
||||
<TextBlock.Foreground>
|
||||
@@ -78,7 +85,7 @@
|
||||
<TextBlock
|
||||
Text="*"
|
||||
Foreground="{StaticResource ErrorRed}"
|
||||
FontSize="16"
|
||||
FontSize="20"
|
||||
/>
|
||||
</StackPanel>
|
||||
<Grid>
|
||||
@@ -88,15 +95,15 @@
|
||||
<TextBox
|
||||
Text="{Binding ServerName}"
|
||||
Grid.Column="1"
|
||||
Height="30"
|
||||
FontSize="14"
|
||||
Height="40"
|
||||
FontSize="20"
|
||||
x:Name="ServerName"
|
||||
/>
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Left"
|
||||
Text="My Awesome Server"
|
||||
FontSize="14"
|
||||
FontSize="20"
|
||||
Visibility="{Binding ElementName=ServerName, Path=Text.IsEmpty, Converter={StaticResource UserNameVisibillity}}"
|
||||
Grid.Column="1"
|
||||
IsHitTestVisible="False"
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<UserControl x:Class="Server_Dashboard.Controls.DoubleRoundProgressBar.DoubleRoundProgressBar"
|
||||
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.Controls.DoubleRoundProgressBar"
|
||||
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
|
||||
xmlns:root="clr-namespace:Server_Dashboard"
|
||||
mc:Ignorable="d"
|
||||
x:Name="_this"
|
||||
d:DesignHeight="50" d:DesignWidth="50">
|
||||
<UserControl.Resources>
|
||||
<root:ValueToAngleConverter x:Key="valueToAngle"/>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Ellipse
|
||||
x:Name="Background"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=BackgroundBrush
|
||||
}"
|
||||
Margin="0"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=BackgroundBrush
|
||||
}"
|
||||
/>
|
||||
<ed:Arc
|
||||
ArcThickness="8"
|
||||
ArcThicknessUnit="Pixel"
|
||||
EndAngle="{Binding
|
||||
Converter={StaticResource valueToAngle},
|
||||
ElementName=_this,
|
||||
Path=ValueRead
|
||||
}"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=ReadIndicatorBrush
|
||||
}"
|
||||
Stretch="None"
|
||||
StartAngle="0"
|
||||
/>
|
||||
<Ellipse
|
||||
x:Name="Seperator"
|
||||
Fill="Transparent"
|
||||
Margin="7"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
Panel.ZIndex="1"
|
||||
/>
|
||||
<Ellipse
|
||||
x:Name="Seperator2"
|
||||
Fill="Transparent"
|
||||
Margin="8"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
Panel.ZIndex="1"
|
||||
/>
|
||||
<ed:Arc
|
||||
Margin="8"
|
||||
ArcThickness="8"
|
||||
ArcThicknessUnit="Pixel"
|
||||
EndAngle="{Binding
|
||||
Converter={StaticResource valueToAngle},
|
||||
ElementName=_this,
|
||||
Path=ValueWrite
|
||||
}"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=WriteIndicatorBrush
|
||||
}"
|
||||
Stretch="None"
|
||||
StartAngle="0"
|
||||
/>
|
||||
<Ellipse
|
||||
x:Name="Border"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
Margin="16"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
|
||||
/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
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.Controls.DoubleRoundProgressBar {
|
||||
/// <summary>
|
||||
/// Interaktionslogik für HalfRoundProgressBar.xaml
|
||||
/// </summary>
|
||||
public partial class DoubleRoundProgressBar : UserControl {
|
||||
|
||||
public static DependencyProperty ReadIndicatorBrushProperty = DependencyProperty.Register("ReadIndicatorBrush", typeof(Brush), typeof(DoubleRoundProgressBar));
|
||||
public Brush ReadIndicatorBrush {
|
||||
get { return (Brush)GetValue(ReadIndicatorBrushProperty); }
|
||||
set { SetValue(ReadIndicatorBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty WriteIndicatorBrushProperty = DependencyProperty.Register("WriteIndicatorBrush", typeof(Brush), typeof(DoubleRoundProgressBar));
|
||||
public Brush WriteIndicatorBrush {
|
||||
get { return (Brush)GetValue(WriteIndicatorBrushProperty); }
|
||||
set { SetValue(WriteIndicatorBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty BackgroundBrushProperty = DependencyProperty.Register("BackgroundBrush", typeof(Brush), typeof(DoubleRoundProgressBar));
|
||||
public Brush BackgroundBrush {
|
||||
get { return (Brush)GetValue(BackgroundBrushProperty); }
|
||||
set { SetValue(BackgroundBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty ProgressBorderBrushProperty = DependencyProperty.Register("ProgressBorderBrush", typeof(Brush), typeof(DoubleRoundProgressBar));
|
||||
public Brush ProgressBorderBrush {
|
||||
get { return (Brush)GetValue(ProgressBorderBrushProperty); }
|
||||
set { SetValue(ProgressBorderBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty ValueWriteProperty = DependencyProperty.Register("ValueWrite", typeof(int), typeof(DoubleRoundProgressBar));
|
||||
public int ValueWrite {
|
||||
get { return (int)GetValue(ValueWriteProperty); }
|
||||
set { SetValue(ValueWriteProperty, value); }
|
||||
}
|
||||
public static DependencyProperty ValueReadProperty = DependencyProperty.Register("ValueRead", typeof(int), typeof(DoubleRoundProgressBar));
|
||||
public int ValueRead {
|
||||
get { return (int)GetValue(ValueReadProperty); }
|
||||
set { SetValue(ValueReadProperty, value); }
|
||||
}
|
||||
|
||||
public DoubleRoundProgressBar() {
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<UserControl x:Class="Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar"
|
||||
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.Controls.HalfRoundProgressBar"
|
||||
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
|
||||
xmlns:root="clr-namespace:Server_Dashboard"
|
||||
mc:Ignorable="d"
|
||||
x:Name="_this"
|
||||
d:DesignHeight="50" d:DesignWidth="50">
|
||||
<UserControl.Resources>
|
||||
<root:ValueToAngleConverter x:Key="valueToAngle"/>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Ellipse
|
||||
x:Name="Background"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=BackgroundBrush
|
||||
}"
|
||||
Margin="0"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=BackgroundBrush
|
||||
}"
|
||||
/>
|
||||
<ed:Arc
|
||||
ArcThickness="8"
|
||||
ArcThicknessUnit="Pixel"
|
||||
EndAngle="{Binding
|
||||
Converter={StaticResource valueToAngle},
|
||||
ElementName=_this,
|
||||
Path=Value
|
||||
}"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=IndicatorBrush
|
||||
}"
|
||||
Stretch="None"
|
||||
StartAngle="0"
|
||||
/>
|
||||
<Ellipse
|
||||
x:Name="Border"
|
||||
Fill="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
Margin="8"
|
||||
Stroke="{Binding
|
||||
ElementName=_this,
|
||||
Path=ProgressBorderBrush
|
||||
}"
|
||||
|
||||
/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
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.Controls.HalfRoundProgressBar {
|
||||
/// <summary>
|
||||
/// Interaktionslogik für HalfRoundProgressBar.xaml
|
||||
/// </summary>
|
||||
public partial class HalfRoundProgressBar : UserControl {
|
||||
|
||||
public static DependencyProperty IndicatorBrushProperty = DependencyProperty.Register("IndicatorBrush", typeof(Brush), typeof(HalfRoundProgressBar));
|
||||
public Brush IndicatorBrush {
|
||||
get { return (Brush)GetValue(IndicatorBrushProperty); }
|
||||
set { SetValue(IndicatorBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty BackgroundBrushProperty = DependencyProperty.Register("BackgroundBrush", typeof(Brush), typeof(HalfRoundProgressBar));
|
||||
public Brush BackgroundBrush {
|
||||
get { return (Brush)GetValue(BackgroundBrushProperty); }
|
||||
set { SetValue(BackgroundBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty ProgressBorderBrushProperty = DependencyProperty.Register("ProgressBorderBrush", typeof(Brush), typeof(HalfRoundProgressBar));
|
||||
public Brush ProgressBorderBrush {
|
||||
get { return (Brush)GetValue(ProgressBorderBrushProperty); }
|
||||
set { SetValue(ProgressBorderBrushProperty, value); }
|
||||
}
|
||||
|
||||
public static DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(int), typeof(HalfRoundProgressBar));
|
||||
public int Value {
|
||||
get { return (int)GetValue(ValueProperty); }
|
||||
set { SetValue(ValueProperty, value); }
|
||||
}
|
||||
|
||||
public HalfRoundProgressBar() {
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
<UserControl x:Class="Server_Dashboard.Controls.ProgressBar.HalfRoundProgressbar"
|
||||
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.Controls.ProgressBar"
|
||||
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
|
||||
xmlns:root="clr-namespace:Server_Dashboard"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="200" d:DesignWidth="200">
|
||||
<UserControl.Resources>
|
||||
<local:ValueToAngle x:Key="valueToAngle"/>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Ellipse x:Name="Background" Fill="{Binding ElementName=_this, Path=BackgroundBrush}" Margin="0" Stroke="Blue"/>
|
||||
<ed:Arc x:Name="Indicator" ArcThickness="8" ArcThicknessUnit="Pixel" EndAngle="{Binding Converter={StaticResource valueToAngle}, ElementName=_this, Path=Value}" Fill="{Binding ElementName=_this, Path=IndicatorBrush}" Stretch="None" StartAngle="0"/>
|
||||
<Ellipse x:Name="Border" Fill="{Binding ElementName=_this, Path=ProgressBorderBrush}" Margin="8" Stroke="Blue"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -1,75 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
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.Controls.ProgressBar {
|
||||
/// <summary>
|
||||
/// Interaktionslogik für HalfRoundProgressbar.xaml
|
||||
/// </summary>
|
||||
public partial class HalfRoundProgressbar : UserControl {
|
||||
public static readonly DependencyProperty IndicatorBrushProperty = DependencyProperty.Register("IndicatorBrush", typeof(Brush), typeof(HalfRoundProgressbar));
|
||||
public Brush IndicatorBrush {
|
||||
get{
|
||||
return (Brush)this.GetValue(IndicatorBrushProperty);
|
||||
}
|
||||
set{
|
||||
this.SetValue(IndicatorBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty BackgroundBrushProperty = DependencyProperty.Register("BackgroundBrush", typeof(Brush), typeof(HalfRoundProgressbar));
|
||||
public Brush BackgroundBrush {
|
||||
get {
|
||||
return (Brush)this.GetValue(BackgroundBrushProperty);
|
||||
}
|
||||
set {
|
||||
this.SetValue(BackgroundBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ProgressBorderBrushProperty = DependencyProperty.Register("ProgressBorderBrush", typeof(Brush), typeof(HalfRoundProgressbar));
|
||||
public Brush ProgressBorderBrush {
|
||||
get {
|
||||
return (Brush)this.GetValue(ProgressBorderBrushProperty);
|
||||
}
|
||||
set {
|
||||
this.SetValue(ProgressBorderBrushProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(int), typeof(HalfRoundProgressbar));
|
||||
public int Value {
|
||||
get {
|
||||
return (int)this.GetValue(ValueProperty);
|
||||
}
|
||||
set {
|
||||
this.SetValue(ValueProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public HalfRoundProgressbar() {
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
|
||||
[ValueConversion(typeof(int), typeof(double))]
|
||||
public class ValueToAngle : IValueConverter {
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
return (double)(((int)value * 0.01) * 360);
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
return (int)((double)value / 360) * 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,9 @@
|
||||
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.Controls.ServerModules"
|
||||
xmlns:progressbar="clr-namespace:Server_Dashboard.Controls.ProgressBar"
|
||||
xmlns:local="clr-namespace:Server_Dashboard.Controls.ServerModules"
|
||||
xmlns:halfroundprogressbar="clr-namespace:Server_Dashboard.Controls.HalfRoundProgressBar"
|
||||
xmlns:doubleroundprogressbar="clr-namespace:Server_Dashboard.Controls.DoubleRoundProgressBar"
|
||||
mc:Ignorable="d">
|
||||
<Border Background="{StaticResource BackgroundSurface_02dp}" MinHeight="100" MinWidth="300" Width="Auto" Height="Auto" Margin="10">
|
||||
<Border.Effect>
|
||||
@@ -27,14 +28,18 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Image Grid.Column="0" Margin="7.5 0 7.5 0" Height="25" Width="25" Source="{Binding ModuleIcon}"/>
|
||||
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Text="{Binding ModulName}"/>
|
||||
<TextBlock Foreground="{StaticResource DeepPurple_A100}" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Text="{Binding ModulName}"/>
|
||||
<Border Background="{Binding StatusIndicator}" Grid.Column="3">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Margin="7 0 30 0" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="0" Foreground="{StaticResource White}" FontSize="20" Text="Status"/>
|
||||
<TextBlock Margin="7 0 30 0" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="0" FontSize="24" Text="Status">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.87"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<Border Grid.Column="1" HorizontalAlignment="Right" Background="{Binding StatusIndicatorBG}" Padding="6">
|
||||
<Ellipse Fill="{Binding StatusIndicator}" StrokeThickness="0" Width="25" Height="25"/>
|
||||
</Border>
|
||||
@@ -42,39 +47,214 @@
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
<Grid Grid.Row="2" Margin="10" Width="Auto">
|
||||
<Grid Grid.Row="2" Margin="20" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1.5*"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid>
|
||||
<Grid Grid.Row="1" Margin="0 0 25 0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="1" Text="Hostname" FontSize="14" Margin="2 2 5 2"/>
|
||||
<TextBlock Grid.Row="2" Text="User" FontSize="14" Margin="2 2 5 2"/>
|
||||
<TextBlock Grid.Row="3" Text="Public IP" FontSize="14" Margin="2 2 5 2"/>
|
||||
<TextBlock Grid.Row="4" Text="Private IP" FontSize="14" Margin="2 2 5 2"/>
|
||||
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding ServerInfo.HostName}" FontSize="14" Margin="5 2 2 2"/>
|
||||
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding ServerInfo.OSHostName}" FontSize="14" Margin="5 2 2 2"/>
|
||||
<TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding ServerInfo.PublicIpAdress}" FontSize="14" Margin="5 2 2 2"/>
|
||||
<TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding ServerInfo.PrivateIpAdress}" FontSize="14" Margin="5 2 2 2"/>
|
||||
<StackPanel Grid.Column="0">
|
||||
<TextBlock Text="Servername" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="User" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="Public IP" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="Private IP" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="Uptime" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="Creation Date" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="Creator" FontSize="16" Margin="2 2 5 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Column="1">
|
||||
<TextBlock Text="{Binding ServerInfo.ServerName}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding ServerInfo.OSUserName}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding ServerInfo.PublicIpAdress}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding ServerInfo.PrivateIpAdress}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding ServerInfo.Uptime}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding CreationDate}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding Creator}" FontSize="16" Margin="5 2 2 10">
|
||||
<TextBlock.Foreground>
|
||||
<SolidColorBrush Color="White" Opacity="0.60"/>
|
||||
</TextBlock.Foreground>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<progressbar:HalfRoundProgressbar Height="50" Width="50" x:Name="prgess" Value="180" IndicatorBrush="Blue" Foreground="Black"/>
|
||||
<Grid Grid.Row="1" Grid.Column="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<halfroundprogressbar:HalfRoundProgressBar
|
||||
Margin="5"
|
||||
Grid.Row="0"
|
||||
ProgressBorderBrush="{StaticResource BackgroundSurface_02dp}"
|
||||
BackgroundBrush="{StaticResource BackgroundSurface_08dp}"
|
||||
Height="100"
|
||||
Width="100"
|
||||
Value="60"
|
||||
IndicatorBrush="{StaticResource Teal_A100}"
|
||||
/>
|
||||
<TextBlock
|
||||
Foreground="{StaticResource Teal_A100}"
|
||||
Grid.Row="0"
|
||||
Text="CPU"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="18"
|
||||
/>
|
||||
<halfroundprogressbar:HalfRoundProgressBar
|
||||
Margin="5"
|
||||
Grid.Row="1"
|
||||
ProgressBorderBrush="{StaticResource BackgroundSurface_02dp}"
|
||||
BackgroundBrush="{StaticResource BackgroundSurface_08dp}"
|
||||
Height="100"
|
||||
Width="100"
|
||||
Value="60"
|
||||
IndicatorBrush="{StaticResource Teal_A100}"
|
||||
/>
|
||||
<TextBlock
|
||||
Foreground="{StaticResource Teal_A100}"
|
||||
Grid.Row="1"
|
||||
Text="GPU"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="18"
|
||||
/>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<doubleroundprogressbar:DoubleRoundProgressBar
|
||||
ValueRead="70"
|
||||
ValueWrite="60"
|
||||
ReadIndicatorBrush="{StaticResource DeepPurple_A100}"
|
||||
WriteIndicatorBrush="{StaticResource Teal_A100}"
|
||||
Margin="5"
|
||||
Grid.Row="0"
|
||||
ProgressBorderBrush="{StaticResource BackgroundSurface_02dp}"
|
||||
BackgroundBrush="{StaticResource BackgroundSurface_08dp}"
|
||||
Height="100"
|
||||
Width="100"
|
||||
/>
|
||||
<StackPanel
|
||||
Grid.Row="0"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="18"
|
||||
TextAlignment="Center"
|
||||
Text="Read"
|
||||
Foreground="{StaticResource DeepPurple_A100}"
|
||||
/>
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="18"
|
||||
TextAlignment="Center"
|
||||
Text="Write"
|
||||
Foreground="{StaticResource Teal_A100}"
|
||||
/>
|
||||
</StackPanel>
|
||||
<doubleroundprogressbar:DoubleRoundProgressBar
|
||||
ValueRead="70"
|
||||
ValueWrite="60"
|
||||
ReadIndicatorBrush="{StaticResource DeepPurple_A100}"
|
||||
WriteIndicatorBrush="{StaticResource Teal_A100}"
|
||||
Margin="5"
|
||||
Grid.Row="1"
|
||||
ProgressBorderBrush="{StaticResource BackgroundSurface_02dp}"
|
||||
BackgroundBrush="{StaticResource BackgroundSurface_08dp}"
|
||||
Height="100"
|
||||
Width="100"
|
||||
/>
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="18"
|
||||
TextAlignment="Center"
|
||||
Text="UP"
|
||||
Foreground="{StaticResource DeepPurple_A100}"
|
||||
/>
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
FontSize="18"
|
||||
TextAlignment="Center"
|
||||
Text="DOWN"
|
||||
Foreground="{StaticResource Teal_A100}"
|
||||
/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
@@ -9,13 +9,14 @@ namespace Server_Dashboard {
|
||||
public ServerInformation ServerInfo { get; set; }
|
||||
public string StatusIndicator { get; set; }
|
||||
public string StatusIndicatorBG { get; set; }
|
||||
public bool ActiveConnection { get; set; }
|
||||
public bool ServerAvailable { get; set; }
|
||||
public string ModuleIcon { get; set; }
|
||||
public string CreationDate { get; set; }
|
||||
|
||||
public DashboardModule(bool activeConnection) {
|
||||
ActiveConnection = activeConnection;
|
||||
StatusIndicator = ActiveConnection ? "#20c657" : "#e53935";
|
||||
StatusIndicatorBG = ActiveConnection ? "#94eeb0" : "#ef9a9a";
|
||||
public DashboardModule(bool serverAvailable) {
|
||||
ServerAvailable = serverAvailable;
|
||||
StatusIndicator = ServerAvailable ? "#20c657" : "#e53935";
|
||||
StatusIndicatorBG = ServerAvailable ? "#94eeb0" : "#ef9a9a";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,13 +6,12 @@ using System.Text;
|
||||
namespace Server_Dashboard {
|
||||
class ServerInformation {
|
||||
public string ServerName { get; set; }
|
||||
public string HostName { get; set; }
|
||||
public string OSUserName { get; set; }
|
||||
public string CpuTemp { get; set; }
|
||||
public string GpuTemp { get; set; }
|
||||
public string Uptime { get; set; }
|
||||
public string DeployDate { get; set; }
|
||||
public string PublicIpAdress { get; set; }
|
||||
public string PrivateIpAdress { get; set; }
|
||||
public string OSHostName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,11 @@ using System.Reflection;
|
||||
namespace Server_Dashboard {
|
||||
public static class DatabaseHandler {
|
||||
|
||||
public static DataTable GetServerInformation() {
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static bool CheckLogin(string uname, string passwd) {
|
||||
string valid = "False";
|
||||
ConnectToDatabase(con => {
|
||||
|
||||
@@ -74,4 +74,17 @@
|
||||
<Resource Include="Assets\Images\userpasswd.png" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Page Update="Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml">
|
||||
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</ApplicationDefinition>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="Controls\ProgressBar\HalfRoundProgressbar.xaml.cs">
|
||||
<Compile Update="Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Controls\ServerModules\ServerModule.xaml.cs">
|
||||
@@ -26,7 +26,10 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Update="Controls\ProgressBar\HalfRoundProgressbar.xaml">
|
||||
<Page Update="Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="Controls\ServerModules\ServerModule.xaml">
|
||||
|
||||
14
Server Dashboard/ValueConverter/ValueToAngleConverter.cs
Normal file
14
Server Dashboard/ValueConverter/ValueToAngleConverter.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Server_Dashboard {
|
||||
[ValueConversion(typeof(int), typeof(double))]
|
||||
public class ValueToAngleConverter : IValueConverter {
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => (int)value * 0.01 * 360;
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => (int)((double)value / 360);
|
||||
}
|
||||
}
|
||||
@@ -5,20 +5,21 @@ using System.Text;
|
||||
|
||||
namespace Server_Dashboard {
|
||||
class DashboardModuleViewModel : BaseViewModel {
|
||||
public ObservableCollection<DashboardModule> ModuleList { get; set; }
|
||||
public ObservableCollection<DashboardModule> Modules { get; set; }
|
||||
public DashboardModuleViewModel() {
|
||||
ModuleList = new ObservableCollection<DashboardModule>();
|
||||
Modules = new ObservableCollection<DashboardModule>();
|
||||
for (int i = 0; i < 10; i++) {
|
||||
ModuleList.Add(new DashboardModule(false) {
|
||||
Modules.Add(new DashboardModule(true) {
|
||||
ModulName = "TestModule",
|
||||
Creator = "Username",
|
||||
ModuleIcon = "../../Assets/Images/PlaceHolderModuleLight.png",
|
||||
CreationDate = DateTime.Now.ToString(),
|
||||
ServerInfo = new ServerInformation() {
|
||||
CpuTemp = "88.88",
|
||||
DeployDate = DateTime.Now.ToString(),
|
||||
GpuTemp = "69.69",
|
||||
HostName = "crylia",
|
||||
OSHostName = "Ubuntu",
|
||||
ServerName = "Ubuntu",
|
||||
OSUserName = "crylia",
|
||||
PrivateIpAdress = "192.168.1.1",
|
||||
PublicIpAdress = "85.69.102.58",
|
||||
Uptime = DateTime.Now.ToString()
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
using System.Diagnostics;
|
||||
using Server_Dashboard.Views.DashboardPages.ModuleCRUD;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Server_Dashboard {
|
||||
class DashboardViewModel : BaseViewModel {
|
||||
private string userName = "Username";
|
||||
private DashboardModuleViewModel dmvm = new DashboardModuleViewModel();
|
||||
|
||||
public string UserName {
|
||||
get { return userName; }
|
||||
@@ -14,14 +18,38 @@ namespace Server_Dashboard {
|
||||
}
|
||||
}
|
||||
|
||||
private ObservableCollection<DashboardModule> modules;
|
||||
|
||||
public ObservableCollection<DashboardModule> Modules {
|
||||
get { return modules; }
|
||||
set {
|
||||
if(value != modules)
|
||||
modules = value;
|
||||
OnPropertyChanged(nameof(modules));
|
||||
}
|
||||
}
|
||||
|
||||
public DashboardViewModel() {
|
||||
OpenLinkCommand = new RelayCommand(OpenLink);
|
||||
CreateNewModuleCommand = new RelayCommand(CreateNewModule);
|
||||
Modules = dmvm.Modules;
|
||||
|
||||
}
|
||||
|
||||
public ICommand OpenLinkCommand { get; set; }
|
||||
public ICommand CreateNewModuleCommand { get; set; }
|
||||
|
||||
private void OpenLink(object param) {
|
||||
Process.Start(new ProcessStartInfo((string)param) { UseShellExecute = true });
|
||||
}
|
||||
|
||||
private void CreateNewModule(object param) {
|
||||
CreateModulePopup cmp = new CreateModulePopup {
|
||||
DataContext = this
|
||||
};
|
||||
cmp.Owner = Application.Current.MainWindow;
|
||||
cmp.WindowStartupLocation = WindowStartupLocation.CenterOwner;
|
||||
cmp.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:controls="clr-namespace:Server_Dashboard.Controls.ServerModules"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="920" d:DesignWidth="1600">
|
||||
d:DesignHeight="920"
|
||||
d:DesignWidth="1600"
|
||||
>
|
||||
<Grid Background="{StaticResource BackgroundSurface_00dp}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
@@ -31,8 +33,8 @@
|
||||
</Grid.RowDefinitions>
|
||||
<Button
|
||||
Grid.Row="0"
|
||||
Command="{Binding CreateModuleCommand}"
|
||||
Content="CREATE MODULE"
|
||||
Command="{Binding CreateNewModuleCommand}"
|
||||
Content="New Module"
|
||||
Height="50"
|
||||
Margin="5 10 5 0" Cursor="Hand"
|
||||
x:Name="CreateModule"
|
||||
@@ -40,21 +42,21 @@
|
||||
<Button
|
||||
Grid.Row="1"
|
||||
Command="{Binding DeleteModuleCommand}"
|
||||
Content="DELETE MODULE"
|
||||
Content="Remove Module"
|
||||
Height="50"
|
||||
Margin="5 10 5 0"
|
||||
/>
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Command="{Binding UpdateModuleCommand}"
|
||||
Content="UPDATE MODULE"
|
||||
Content="Change Module"
|
||||
Height="50"
|
||||
Margin="5 10 5 0" Cursor="Hand"
|
||||
/>
|
||||
</Grid>
|
||||
<Grid Grid.Column="1">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Hidden">
|
||||
<ItemsControl ItemsSource="{Binding ModuleList}">
|
||||
<ItemsControl ItemsSource="{Binding Modules}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel HorizontalAlignment="Center"/>
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Server_Dashboard.Views.DashboardPages {
|
||||
public partial class MainDashboardPage : UserControl {
|
||||
public MainDashboardPage() {
|
||||
InitializeComponent();
|
||||
DataContext = new DashboardModuleViewModel();
|
||||
DataContext = new DashboardViewModel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,14 @@
|
||||
xmlns:views="clr-namespace:Server_Dashboard.Views.DashboardPages"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
|
||||
Height="1000" Width="Auto" WindowStyle="None" Background="Transparent" ResizeMode="CanResize">
|
||||
Height="1000"
|
||||
Width="Auto"
|
||||
WindowStyle="None"
|
||||
Background="Transparent"
|
||||
ResizeMode="CanResize"
|
||||
mc:Ignorable="d"
|
||||
d:Height="1000" d:Width="1900"
|
||||
>
|
||||
<WindowChrome.WindowChrome>
|
||||
<WindowChrome CaptionHeight="0"/>
|
||||
</WindowChrome.WindowChrome>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3798CA25F8F21D1BC8F78F513874389CA92E48F9"
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8B13C63F73D8B03B1CC973E996B230B95776E3E8"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3798CA25F8F21D1BC8F78F513874389CA92E48F9"
|
||||
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8B13C63F73D8B03B1CC973E996B230B95776E3E8"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5029136ADD9BB5EDC6CF4C0AC4D54AF476738F64"
|
||||
#pragma checksum "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "32E40DCB8D29DC9D6CAF64DBB32922B5F29B846C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -9,6 +9,11 @@
|
||||
// </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.DashboardPages.ModuleCRUD;
|
||||
using System;
|
||||
@@ -43,7 +48,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
public partial class CreateModulePopup : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 93 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 100 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox ServerName;
|
||||
|
||||
@@ -51,7 +56,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 139 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 146 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.PasswordBox Password;
|
||||
|
||||
@@ -59,7 +64,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 144 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 151 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBlock PasswordHint;
|
||||
|
||||
@@ -67,7 +72,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 185 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 192 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox UserName;
|
||||
|
||||
@@ -75,7 +80,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 229 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 236 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox IPAdress;
|
||||
|
||||
@@ -83,7 +88,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 266 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 273 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox Port;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5029136ADD9BB5EDC6CF4C0AC4D54AF476738F64"
|
||||
#pragma checksum "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "32E40DCB8D29DC9D6CAF64DBB32922B5F29B846C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -9,6 +9,11 @@
|
||||
// </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.DashboardPages.ModuleCRUD;
|
||||
using System;
|
||||
@@ -43,7 +48,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
public partial class CreateModulePopup : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 93 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 100 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox ServerName;
|
||||
|
||||
@@ -51,7 +56,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 139 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 146 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.PasswordBox Password;
|
||||
|
||||
@@ -59,7 +64,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 144 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 151 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBlock PasswordHint;
|
||||
|
||||
@@ -67,7 +72,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 185 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 192 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox UserName;
|
||||
|
||||
@@ -75,7 +80,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 229 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 236 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox IPAdress;
|
||||
|
||||
@@ -83,7 +88,7 @@ namespace Server_Dashboard.Views.DashboardPages.ModuleCRUD {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 266 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
#line 273 "..\..\..\..\..\..\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.TextBox Port;
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,139 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "17E1D8A225A205E6419F31597D149EB5F8DCE3B4"
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.Expression.Controls;
|
||||
using Microsoft.Expression.Media;
|
||||
using Microsoft.Expression.Shapes;
|
||||
using Server_Dashboard;
|
||||
using Server_Dashboard.Controls.DoubleRoundProgressBar;
|
||||
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.Controls.DoubleRoundProgressBar {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DoubleRoundProgressBar
|
||||
/// </summary>
|
||||
public partial class DoubleRoundProgressBar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.DoubleRoundProgressBar.DoubleRoundProgressBar _this;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 17 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Background;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 44 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Seperator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 54 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Seperator2;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 80 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Border;
|
||||
|
||||
#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/controls/doubleroundprogressbar/doubleroundprogressba" +
|
||||
"r.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.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._this = ((Server_Dashboard.Controls.DoubleRoundProgressBar.DoubleRoundProgressBar)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.Seperator = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.Seperator2 = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 5:
|
||||
this.Border = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,139 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "17E1D8A225A205E6419F31597D149EB5F8DCE3B4"
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.Expression.Controls;
|
||||
using Microsoft.Expression.Media;
|
||||
using Microsoft.Expression.Shapes;
|
||||
using Server_Dashboard;
|
||||
using Server_Dashboard.Controls.DoubleRoundProgressBar;
|
||||
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.Controls.DoubleRoundProgressBar {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DoubleRoundProgressBar
|
||||
/// </summary>
|
||||
public partial class DoubleRoundProgressBar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.DoubleRoundProgressBar.DoubleRoundProgressBar _this;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 17 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Background;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 44 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Seperator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 54 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Seperator2;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 80 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Border;
|
||||
|
||||
#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/controls/doubleroundprogressbar/doubleroundprogressba" +
|
||||
"r.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\..\..\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.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._this = ((Server_Dashboard.Controls.DoubleRoundProgressBar.DoubleRoundProgressBar)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.Seperator = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 4:
|
||||
this.Seperator2 = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 5:
|
||||
this.Border = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\DoubleRoundProgressBar\HalfRoundProgressBar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3333DDF403E566A3CC687110354ACC86B825F4C6"
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.Expression.Controls;
|
||||
using Microsoft.Expression.Media;
|
||||
using Microsoft.Expression.Shapes;
|
||||
using Server_Dashboard.Controls.HalfRoundProgressBar;
|
||||
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.Controls.HalfRoundProgressBar {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// HalfRoundProgressBar
|
||||
/// </summary>
|
||||
public partial class HalfRoundProgressBar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 9 "..\..\..\..\..\Controls\DoubleRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar _this;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 16 "..\..\..\..\..\Controls\DoubleRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Background;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 40 "..\..\..\..\..\Controls\DoubleRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Border;
|
||||
|
||||
#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;V1.0.0.0;component/controls/doubleroundprogressbar/halfroundpro" +
|
||||
"gressbar.xaml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\..\..\Controls\DoubleRoundProgressBar\HalfRoundProgressBar.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._this = ((Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.Border = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "238CD12AD7426C5D3F9A9A80E0AABB6771043B14"
|
||||
#pragma checksum "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "088662625301BAB0ABA31EF9E2688BA689BC4C48"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -13,7 +13,7 @@ using Microsoft.Expression.Controls;
|
||||
using Microsoft.Expression.Media;
|
||||
using Microsoft.Expression.Shapes;
|
||||
using Server_Dashboard;
|
||||
using Server_Dashboard.Controls.ProgressBar;
|
||||
using Server_Dashboard.Controls.HalfRoundProgressBar;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
@@ -37,16 +37,24 @@ using System.Windows.Shapes;
|
||||
using System.Windows.Shell;
|
||||
|
||||
|
||||
namespace Server_Dashboard.Controls.ProgressBar {
|
||||
namespace Server_Dashboard.Controls.HalfRoundProgressBar {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// HalfRoundProgressbar
|
||||
/// HalfRoundProgressBar
|
||||
/// </summary>
|
||||
public partial class HalfRoundProgressbar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
public partial class HalfRoundProgressBar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 15 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
#line 10 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar _this;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 17 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Background;
|
||||
|
||||
@@ -54,15 +62,7 @@ namespace Server_Dashboard.Controls.ProgressBar {
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 16 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Microsoft.Expression.Shapes.Arc Indicator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 17 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
#line 44 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Border;
|
||||
|
||||
@@ -81,9 +81,10 @@ namespace Server_Dashboard.Controls.ProgressBar {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/controls/progressbar/halfroundprogressbar.xaml", System.UriKind.Relative);
|
||||
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/controls/halfroundprogressbar/halfroundprogressbar.xa" +
|
||||
"ml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
#line 1 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
|
||||
#line default
|
||||
@@ -100,10 +101,10 @@ namespace Server_Dashboard.Controls.ProgressBar {
|
||||
switch (connectionId)
|
||||
{
|
||||
case 1:
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
this._this = ((Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.Indicator = ((Microsoft.Expression.Shapes.Arc)(target));
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.Border = ((System.Windows.Shapes.Ellipse)(target));
|
||||
@@ -0,0 +1,117 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "088662625301BAB0ABA31EF9E2688BA689BC4C48"
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.Expression.Controls;
|
||||
using Microsoft.Expression.Media;
|
||||
using Microsoft.Expression.Shapes;
|
||||
using Server_Dashboard;
|
||||
using Server_Dashboard.Controls.HalfRoundProgressBar;
|
||||
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.Controls.HalfRoundProgressBar {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// HalfRoundProgressBar
|
||||
/// </summary>
|
||||
public partial class HalfRoundProgressBar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 10 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar _this;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 17 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Background;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 44 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Border;
|
||||
|
||||
#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/controls/halfroundprogressbar/halfroundprogressbar.xa" +
|
||||
"ml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\..\..\Controls\HalfRoundProgressBar\HalfRoundProgressBar.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._this = ((Server_Dashboard.Controls.HalfRoundProgressBar.HalfRoundProgressBar)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.Border = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "238CD12AD7426C5D3F9A9A80E0AABB6771043B14"
|
||||
#pragma checksum "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "09D2007D73AAC7AB4D1E9454065DB0456F1149FF"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -53,22 +53,6 @@ namespace Server_Dashboard.Controls.ProgressBar {
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 16 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Microsoft.Expression.Shapes.Arc Indicator;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
|
||||
#line 17 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Shapes.Ellipse Border;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@@ -81,7 +65,8 @@ namespace Server_Dashboard.Controls.ProgressBar {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Uri resourceLocater = new System.Uri("/Server Dashboard;component/controls/progressbar/halfroundprogressbar.xaml", System.UriKind.Relative);
|
||||
System.Uri resourceLocater = new System.Uri("/Server Dashboard;V1.0.0.0;component/controls/progressbar/halfroundprogressbar.xa" +
|
||||
"ml", System.UriKind.Relative);
|
||||
|
||||
#line 1 "..\..\..\..\..\Controls\ProgressBar\HalfRoundProgressbar.xaml"
|
||||
System.Windows.Application.LoadComponent(this, resourceLocater);
|
||||
@@ -102,12 +87,6 @@ namespace Server_Dashboard.Controls.ProgressBar {
|
||||
case 1:
|
||||
this.Background = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
case 2:
|
||||
this.Indicator = ((Microsoft.Expression.Shapes.Arc)(target));
|
||||
return;
|
||||
case 3:
|
||||
this.Border = ((System.Windows.Shapes.Ellipse)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\ServerModules\ServerModule.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8A3F7210FBE6B2A6A9BEA2B733A6B47437C3F042"
|
||||
#pragma checksum "..\..\..\..\..\Controls\ServerModules\ServerModule.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "633A641D03E1AF034F36D2AA572BA272CB58A758"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -9,7 +9,8 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Server_Dashboard.Controls.ProgressBar;
|
||||
using Server_Dashboard.Controls.DoubleRoundProgressBar;
|
||||
using Server_Dashboard.Controls.HalfRoundProgressBar;
|
||||
using Server_Dashboard.Controls.ServerModules;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
@@ -42,14 +43,6 @@ namespace Server_Dashboard.Controls.ServerModules {
|
||||
/// </summary>
|
||||
public partial class ServerModule : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 77 "..\..\..\..\..\Controls\ServerModules\ServerModule.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.ProgressBar.HalfRoundProgressbar prgess;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@@ -85,12 +78,6 @@ namespace Server_Dashboard.Controls.ServerModules {
|
||||
[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.prgess = ((Server_Dashboard.Controls.ProgressBar.HalfRoundProgressbar)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\Controls\ServerModules\ServerModule.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "8A3F7210FBE6B2A6A9BEA2B733A6B47437C3F042"
|
||||
#pragma checksum "..\..\..\..\..\Controls\ServerModules\ServerModule.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "633A641D03E1AF034F36D2AA572BA272CB58A758"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -9,7 +9,8 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Server_Dashboard.Controls.ProgressBar;
|
||||
using Server_Dashboard.Controls.DoubleRoundProgressBar;
|
||||
using Server_Dashboard.Controls.HalfRoundProgressBar;
|
||||
using Server_Dashboard.Controls.ServerModules;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
@@ -42,14 +43,6 @@ namespace Server_Dashboard.Controls.ServerModules {
|
||||
/// </summary>
|
||||
public partial class ServerModule : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 77 "..\..\..\..\..\Controls\ServerModules\ServerModule.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal Server_Dashboard.Controls.ProgressBar.HalfRoundProgressbar prgess;
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
@@ -85,12 +78,6 @@ namespace Server_Dashboard.Controls.ServerModules {
|
||||
[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.prgess = ((Server_Dashboard.Controls.ProgressBar.HalfRoundProgressbar)(target));
|
||||
return;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
aea5bea0f4f2b7b38a2dc37bc786b4b31125487d
|
||||
bfa9f92dc8e415b87a2c5cdc24b3325d2555a4a3
|
||||
|
||||
@@ -4,7 +4,6 @@ C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcor
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Server Dashboard.runtimeconfig.dev.json
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Server Dashboard.dll
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Server Dashboard.pdb
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Server Dashboard.csprojAssemblyReference.cache
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\App.g.cs
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Server Dashboard_MarkupCompile.cache
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Server Dashboard_MarkupCompile.lref
|
||||
@@ -46,7 +45,10 @@ C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcor
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\ServerModules\ServerModule.baml
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\Dashboard\CRUD Popup\CreateModulePopup.g.cs
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\Dashboard\CRUD Popup\CreateModulePopup.baml
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\ProgressBar\HalfRoundProgressbar.g.cs
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Microsoft.Expression.Drawing.dll
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\ProgressBar\HalfRoundProgressbar.baml
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Microsoft.Expression.Drawing.xml
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Server Dashboard.csprojAssemblyReference.cache
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\HalfRoundProgressBar\HalfRoundProgressBar.g.cs
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\HalfRoundProgressBar\HalfRoundProgressBar.baml
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.g.cs
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.baml
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,11 +10,11 @@ none
|
||||
false
|
||||
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
|
||||
6-359307902
|
||||
7-211744036
|
||||
|
||||
23-1796455254
|
||||
25689428640
|
||||
205685840547
|
||||
Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml;Controls\ProgressBar\HalfRoundProgressbar.xaml;Controls\ServerModules\ServerModule.xaml;LoginWindow.xaml;Views\DashboardPages\MainDashboardPage.xaml;Views\DashboardWindow.xaml;
|
||||
Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml;Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml;Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml;Controls\ServerModules\ServerModule.xaml;LoginWindow.xaml;Views\DashboardPages\MainDashboardPage.xaml;Views\DashboardWindow.xaml;
|
||||
|
||||
False
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ none
|
||||
false
|
||||
TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
|
||||
6-359307902
|
||||
7-211744036
|
||||
|
||||
25899184772
|
||||
27-909898630
|
||||
205685840547
|
||||
Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml;Controls\ProgressBar\HalfRoundProgressbar.xaml;Controls\ServerModules\ServerModule.xaml;LoginWindow.xaml;Views\DashboardPages\MainDashboardPage.xaml;Views\DashboardWindow.xaml;
|
||||
Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml;Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml;Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml;Controls\ServerModules\ServerModule.xaml;LoginWindow.xaml;Views\DashboardPages\MainDashboardPage.xaml;Views\DashboardWindow.xaml;
|
||||
|
||||
True
|
||||
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
|
||||
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\ProgressBar\HalfRoundProgressbar.xaml;;
|
||||
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\GeneratedInternalTypeHelper.g.i.cs
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\ServerModules\ServerModule.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;;
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\Dashboard\CRUD Popup\CreateModulePopup.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\ProgressBar\HalfRoundProgressbar.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\DoubleRoundProgressBar\DoubleRoundProgressBar.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\HalfRoundProgressBar\HalfRoundProgressBar.xaml;;
|
||||
FC:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\Controls\ServerModules\ServerModule.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;;
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D3E2DB5481708B615AA97E451E6CE9AABDBA64D7"
|
||||
#pragma checksum "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "12AD3CC2ED4678AD83292A0BDCB8AC15BCB96FEB"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -50,7 +50,7 @@ namespace Server_Dashboard.Views.DashboardPages {
|
||||
public partial class MainDashboardPage : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 38 "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml"
|
||||
#line 40 "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button CreateModule;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "D3E2DB5481708B615AA97E451E6CE9AABDBA64D7"
|
||||
#pragma checksum "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "12AD3CC2ED4678AD83292A0BDCB8AC15BCB96FEB"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -50,7 +50,7 @@ namespace Server_Dashboard.Views.DashboardPages {
|
||||
public partial class MainDashboardPage : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 38 "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml"
|
||||
#line 40 "..\..\..\..\..\Views\DashboardPages\MainDashboardPage.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Button CreateModule;
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\Views\DashboardWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9A60EA80A885060D1C77171007C077F1EC197887"
|
||||
#pragma checksum "..\..\..\..\Views\DashboardWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E2931D9FE448B25CA4843C7DB4CD838F94FDDCEB"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -50,7 +50,7 @@ namespace Server_Dashboard.Views {
|
||||
public partial class DashboardWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 45 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||
#line 52 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Grid TopBarGrid;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma checksum "..\..\..\..\Views\DashboardWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "9A60EA80A885060D1C77171007C077F1EC197887"
|
||||
#pragma checksum "..\..\..\..\Views\DashboardWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E2931D9FE448B25CA4843C7DB4CD838F94FDDCEB"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
@@ -50,7 +50,7 @@ namespace Server_Dashboard.Views {
|
||||
public partial class DashboardWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
||||
|
||||
|
||||
#line 45 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||
#line 52 "..\..\..\..\Views\DashboardWindow.xaml"
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
||||
internal System.Windows.Controls.Grid TopBarGrid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user