mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
added progress window to archive creation process.
This commit is contained in:
@@ -40,6 +40,11 @@ namespace GARbro.GUI
|
||||
if (MessageBoxResult.Yes != rc)
|
||||
return;
|
||||
}
|
||||
var format = this.ArchiveFormat.SelectedItem as ArchiveFormat;
|
||||
if (null != format)
|
||||
{
|
||||
ArchiveOptions = format.GetOptions (OptionsWidget.Content);
|
||||
}
|
||||
DialogResult = true;
|
||||
}
|
||||
|
||||
@@ -97,17 +102,10 @@ namespace GARbro.GUI
|
||||
void OnFormatSelect (object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
var format = this.ArchiveFormat.SelectedItem as ArchiveFormat;
|
||||
UIElement widget = null;
|
||||
object widget = null;
|
||||
if (null != format)
|
||||
{
|
||||
var options = format.GetOptions();
|
||||
ArchiveOptions = options;
|
||||
if (null != options)
|
||||
widget = options.Widget as UIElement;
|
||||
}
|
||||
else
|
||||
{
|
||||
ArchiveOptions = null;
|
||||
widget = format.GetCreationWidget();
|
||||
}
|
||||
OptionsWidget.Content = widget;
|
||||
OptionsWidget.Visibility = null != widget ? Visibility.Visible : Visibility.Hidden;
|
||||
|
||||
Reference in New Issue
Block a user