public void Execute(object parameter) { if (!ServiceProvider.Settings.SelectedBitmap.FileItem.IsRaw) { MessageBox.Show("Raw file is needed for this action"); return; } IMenuAction action = parameter as IMenuAction; if (action != null) { ActionExecuteWnd wnd = new ActionExecuteWnd(action); wnd.ShowDialog(); } }
public void Execute(object parameter) { 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(); } } }