public void Execute(object parameter) { EnfuseSettingsWnd wnds = new EnfuseSettingsWnd { DataContext = _settings }; if (wnds.ShowDialog() == true) { IMenuAction action = parameter as IMenuAction; if (action != null) { ActionExecuteWnd wnd = new ActionExecuteWnd(action); wnd.ShowDialog(); } } }
public void Execute(object parameter) { EnfuseSettingsWnd wnds = new EnfuseSettingsWnd {DataContext = _settings}; if (wnds.ShowDialog() == true) { IMenuAction action = parameter as IMenuAction; if (action != null) { ActionExecuteWnd wnd = new ActionExecuteWnd(action); wnd.ShowDialog(); } } }