-
-
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.
Merge pull request #14 from jimmyeao/dev
Dev
- Loading branch information
Showing
16 changed files
with
793 additions
and
66 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 @@ | ||
<Window x:Class="Elite_Dangerous_Addon_Launcer_V2.CustomDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Elite_Dangerous_Addon_Launcer_V2" | ||
Title="Custom Dialog" | ||
Width="400" | ||
Height="200" | ||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
TextElement.Foreground="{DynamicResource MaterialDesignBody}" | ||
TextElement.FontWeight="Regular" | ||
TextElement.FontSize="13" | ||
TextOptions.TextFormattingMode="Ideal" | ||
TextOptions.TextRenderingMode="Auto" | ||
Background="{DynamicResource MaterialDesignPaper}" | ||
FontFamily="{DynamicResource MaterialDesignFont}"> | ||
|
||
<materialDesign:Card> | ||
<Border Padding="20"> | ||
<Grid> | ||
|
||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock x:Name="MessageTextBlock" Grid.Row="0" Text="Message" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" /> | ||
|
||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center"> | ||
<Button x:Name="YesButton" Content="Yes" Click="YesButton_Click" Margin="10"/> | ||
<Button x:Name="NoButton" Content="No" Click="NoButton_Click" Margin="10"/> | ||
</StackPanel> | ||
|
||
</Grid> | ||
</Border> | ||
</materialDesign:Card> | ||
</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,43 @@ | ||
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 Elite_Dangerous_Addon_Launcer_V2 | ||
{ | ||
/// <summary> | ||
/// Interaction logic for CustomDialog.xaml | ||
/// </summary> | ||
public partial class CustomDialog : Window | ||
{ | ||
public MessageBoxResult Result { get; set; } | ||
|
||
public CustomDialog(string message) | ||
{ | ||
InitializeComponent(); | ||
MessageTextBlock.Text = message; | ||
} | ||
|
||
private void YesButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
Result = MessageBoxResult.Yes; | ||
this.Close(); | ||
} | ||
|
||
private void NoButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
Result = MessageBoxResult.No; | ||
this.Close(); | ||
} | ||
} | ||
|
||
} |
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="Elite_Dangerous_Addon_Launcer_V2.ErrorDialog" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Elite_Dangerous_Addon_Launcer_V2" | ||
Title="Custom Error" | ||
Width="400" | ||
Height="200" | ||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
TextElement.Foreground="{DynamicResource MaterialDesignBody}" | ||
TextElement.FontWeight="Regular" | ||
TextElement.FontSize="13" | ||
TextOptions.TextFormattingMode="Ideal" | ||
TextOptions.TextRenderingMode="Auto" | ||
Background="{DynamicResource MaterialDesignPaper}" | ||
FontFamily="{DynamicResource MaterialDesignFont}"> | ||
|
||
<materialDesign:Card> | ||
<Border Padding="20"> | ||
<Grid> | ||
|
||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*"/> | ||
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock x:Name="MessageTextBlock" Grid.Row="0" Text="Message" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" /> | ||
|
||
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center"> | ||
<Button x:Name="YesButton" Content="Ok" Click="YesButton_Click" Margin="10"/> | ||
</StackPanel> | ||
|
||
</Grid> | ||
</Border> | ||
</materialDesign:Card> | ||
</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,43 @@ | ||
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 Elite_Dangerous_Addon_Launcer_V2 | ||
{ | ||
/// <summary> | ||
/// Interaction logic for CustomDialog.xaml | ||
/// </summary> | ||
public partial class ErrorDialog : Window | ||
{ | ||
public MessageBoxResult Result { get; set; } | ||
|
||
public ErrorDialog(string message) | ||
{ | ||
InitializeComponent(); | ||
MessageTextBlock.Text = message; | ||
} | ||
|
||
private void YesButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
Result = MessageBoxResult.Yes; | ||
this.Close(); | ||
} | ||
|
||
private void NoButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
Result = MessageBoxResult.No; | ||
this.Close(); | ||
} | ||
} | ||
|
||
} |
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.