-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvments to GUI related with restore window and pre-restore backup…
… (eg. destination size shown as two values), new "Named backup" function, better files ordering in restore window
- Loading branch information
Showing
9 changed files
with
144 additions
and
15 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,15 @@ | ||
<Window x:Class="SaveGameBackupTool.NamedBackup" | ||
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:SaveGameBackupTool" | ||
mc:Ignorable="d" | ||
Title="Create custom named backup" Height="80.39" Width="443.327"> | ||
<Grid> | ||
<Button x:Name="buttonCancel" Content="Cancel" Margin="0,13,86,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="buttonCancel_Click"/> | ||
<TextBox x:Name="textBoxName" Margin="10,10,166,0" TextWrapping="Wrap" Text="manual" Height="23" VerticalAlignment="Top" KeyDown="textBoxName_KeyDown"/> | ||
<Button x:Name="buttonCreate" Content="Create" Margin="0,13,6,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75" Click="buttonCreate_Click"/> | ||
|
||
</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,54 @@ | ||
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 SaveGameBackupTool | ||
{ | ||
/// <summary> | ||
/// Logika interakcji dla klasy NamedBackup.xaml | ||
/// </summary> | ||
public partial class NamedBackup : Window | ||
{ | ||
public NamedBackup() | ||
{ | ||
InitializeComponent(); | ||
textBoxName.Focus(); | ||
textBoxName.SelectAll(); | ||
} | ||
|
||
public string GetBackupName() | ||
{ | ||
return textBoxName.Text; | ||
} | ||
|
||
private void buttonCreate_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.DialogResult = true; | ||
Close(); | ||
} | ||
|
||
private void buttonCancel_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.DialogResult = false; | ||
Close(); | ||
} | ||
|
||
private void textBoxName_KeyDown(object sender, KeyEventArgs e) | ||
{ | ||
if (e.Key == Key.Return) | ||
{ | ||
buttonCreate_Click(sender, e); | ||
} | ||
} | ||
} | ||
} |
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