-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Delete dialogs and proper error dialogs
- Loading branch information
1 parent
b2d4c83
commit fc5e4e5
Showing
17 changed files
with
205 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<ui:ContentDialog x:Class="ZenovaLauncher.DeleteConfirmationDialog" | ||
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:ZenovaLauncher" | ||
xmlns:ui="http://schemas.modernwpf.com/2019" | ||
mc:Ignorable="d" | ||
Style="{StaticResource ConfirmationContentDialog}" | ||
PrimaryButtonText="Delete" | ||
CloseButtonText="Cancel" | ||
DefaultButton="Primary" | ||
SecondaryButtonStyle="{DynamicResource LauncherDeleteButtonStyle}"> | ||
|
||
<ui:SimpleStackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Spacing="15"> | ||
<TextBlock HorizontalAlignment="Center" FontSize="15" Text="Are you sure you want to delete?" /> | ||
<TextBlock x:Name="DeleteItemName" FontSize="15" HorizontalAlignment="Center" FontStyle="Italic" /> | ||
</ui:SimpleStackPanel> | ||
</ui:ContentDialog> |
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,17 @@ | ||
using ModernWpf.Controls; | ||
|
||
namespace ZenovaLauncher | ||
{ | ||
/// <summary> | ||
/// Interaction logic for DeleteConfirmationDialog.xaml | ||
/// </summary> | ||
public partial class DeleteConfirmationDialog : ContentDialog | ||
{ | ||
public DeleteConfirmationDialog(string nameToDelete) | ||
{ | ||
InitializeComponent(); | ||
|
||
DeleteItemName.Text = nameToDelete; | ||
} | ||
} | ||
} |
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,21 @@ | ||
<ui:ContentDialog x:Class="ZenovaLauncher.ErrorDialog" | ||
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:ZenovaLauncher" | ||
xmlns:ui="http://schemas.modernwpf.com/2019" | ||
mc:Ignorable="d" | ||
Style="{StaticResource ConfirmationContentDialog}" | ||
CloseButtonText="Close" | ||
SecondaryButtonStyle="{DynamicResource LauncherDefaultButtonStyle}"> | ||
|
||
<ui:SimpleStackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Spacing="15"> | ||
<ui:SimpleStackPanel Margin="20,0,20,0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> | ||
<TextBlock Text="ERROR" HorizontalAlignment="Center" FontSize="15" /> | ||
<TextBlock x:Name="ErrorTitle" HorizontalAlignment="Center" FontSize="22" FontWeight="Bold"/> | ||
</ui:SimpleStackPanel> | ||
<TextBlock Margin="20,0,20,0" x:Name="ErrorMessage" FontSize="14" TextAlignment="Center" TextWrapping="Wrap" /> | ||
<Separator Background="{DynamicResource AppBarSeparatorLowForeground}" /> | ||
</ui:SimpleStackPanel> | ||
</ui:ContentDialog> |
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,18 @@ | ||
using ModernWpf.Controls; | ||
|
||
namespace ZenovaLauncher | ||
{ | ||
/// <summary> | ||
/// Interaction logic for DeleteConfirmationDialog.xaml | ||
/// </summary> | ||
public partial class ErrorDialog : ContentDialog | ||
{ | ||
public ErrorDialog(string errorTitle, string errorMessage) | ||
{ | ||
InitializeComponent(); | ||
|
||
ErrorTitle.Text = errorTitle; | ||
ErrorMessage.Text = errorMessage; | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.