/// <summary> /// Creates the new action user interface. /// </summary> /// <param name="newActionUserInterface">The new action user interface.</param> /// <returns>The new action user interface.</returns> public FrameworkElement CreateNewActionUserInterface(INewActionUserInterface newActionUserInterface) { return(new NewOpenFolderActionUserInterface { DataContext = this, NewActionUserInterface = newActionUserInterface }); }
/// <summary> /// Creates the new action user interface. /// </summary> /// <param name="newActionUserInterface">The new action user interface.</param> /// <returns>The user interface for the new action.</returns> public FrameworkElement CreateNewActionUserInterface(INewActionUserInterface newActionUserInterface) { // Create the user interface, set it's data context to the action instance. return(new NewExecuteProgramActionUserInterface { DataContext = this, NewActionUserInterface = newActionUserInterface }); }