-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some refinement to the app branding and added the about dialog.
- Loading branch information
1 parent
263d051
commit d0696c2
Showing
13 changed files
with
244 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using RudeFox.Views; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
|
||
namespace RudeFox.Services | ||
{ | ||
public class DialogService | ||
{ | ||
#region Constructor | ||
private DialogService() | ||
{ | ||
|
||
} | ||
#endregion | ||
|
||
#region Properties | ||
private static DialogService _instance; | ||
public static DialogService Instance | ||
{ | ||
get { return _instance ?? (_instance = new DialogService()); } | ||
} | ||
#endregion | ||
|
||
#region Methods | ||
public bool? OpenAboutDialog() | ||
{ | ||
var window = new AboutDialog(); | ||
return window.ShowDialog(); | ||
} | ||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using RudeFox.Helpers; | ||
using RudeFox.Mvvm; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Input; | ||
|
||
namespace RudeFox.ViewModels | ||
{ | ||
class AboutDialogVM : BindableBase | ||
{ | ||
#region Constructor | ||
public AboutDialogVM() | ||
{ | ||
VisitWebsiteCommand = new DelegateCommand(p => Process.Start(Constants.WEBSITE_URL)); | ||
} | ||
#endregion | ||
|
||
#region Properties | ||
public string Version | ||
{ | ||
get | ||
{ | ||
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; | ||
// return "VERSION " + version.Major.ToString() + "." + version.Minor.ToString(); | ||
return "VERSION " + version.ToString(); | ||
} | ||
} | ||
#endregion | ||
|
||
#region Commands | ||
public ICommand VisitWebsiteCommand { get; private set; } | ||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Window x:Class="RudeFox.Views.AboutDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:RudeFox.Views" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" | ||
mc:Ignorable="d" Icon="/Images/icon_24.png" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" | ||
Title="About Rude Fox" Height="300" Width="500"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="2*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="8*"/> | ||
<RowDefinition Height="2*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<Image Source="/Images/icon_128.png" VerticalAlignment="Center" HorizontalAlignment="Center" Width="96" Stretch="Uniform"/> | ||
|
||
<StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" > | ||
<TextBlock Text="Rude Fox" FontWeight="Light" FontSize="32" /> | ||
<TextBlock Text="{Binding Version}" FontSize="12" Foreground="#555" Margin="0,0,0,10" /> | ||
<TextBlock Text="Programming:" FontSize="14" /> | ||
<TextBlock Text="Encryptor (encryptor@outlook.com)"/> | ||
<TextBlock Text="Icons by:" FontSize="14" Margin="0,10,0,0"/> | ||
<TextBlock Text="Madebyoliver and Flat Icons"/> | ||
</StackPanel> | ||
|
||
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" Margin="10,0"> | ||
<Button x:Name="websiteButton" Content="Visit our website" Padding="10, 5" Command="{Binding VisitWebsiteCommand}"/> | ||
<Button x:Name="closeButton" Content="Close" Margin="10,0,0,0" Padding="10, 5" IsCancel="True" /> | ||
</StackPanel> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using RudeFox.ViewModels; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace RudeFox.Views | ||
{ | ||
/// <summary> | ||
/// Interaction logic for AboutDialog.xaml | ||
/// </summary> | ||
public partial class AboutDialog : Window | ||
{ | ||
public AboutDialog() | ||
{ | ||
InitializeComponent(); | ||
|
||
DataContext = new AboutDialogVM(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.