mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
refactored ResourceOptions handling.
This commit is contained in:
@@ -837,15 +837,21 @@ namespace GARbro.GUI
|
||||
|
||||
private void OnParametersRequest (object sender, ParametersRequestEventArgs e)
|
||||
{
|
||||
var control = e.InputWidget as UIElement;
|
||||
if (null != control)
|
||||
var format = sender as ArchiveFormat;
|
||||
if (null != format)
|
||||
{
|
||||
bool busy_state = m_busy_state;
|
||||
var param_dialog = new ArcParametersDialog (control, e.Notice);
|
||||
param_dialog.Owner = this;
|
||||
e.InputResult = param_dialog.ShowDialog() ?? false;
|
||||
if (busy_state)
|
||||
SetBusyState();
|
||||
var control = format.GetAccessWidget() as UIElement;
|
||||
if (null != control)
|
||||
{
|
||||
bool busy_state = m_busy_state;
|
||||
var param_dialog = new ArcParametersDialog (control, e.Notice);
|
||||
param_dialog.Owner = this;
|
||||
e.InputResult = param_dialog.ShowDialog() ?? false;
|
||||
if (e.InputResult)
|
||||
e.Options = format.GetOptions (control);
|
||||
if (busy_state)
|
||||
SetBusyState();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user