Skip to content

Commit

Permalink
MvsSln up to rev 9c39498 due to 3F/MvsSln#25
Browse files Browse the repository at this point in the history
Part of #144
  • Loading branch information
3F committed Apr 28, 2020
1 parent 2579d14 commit 7490f86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
14 changes: 0 additions & 14 deletions Wizard/Extensions/CollectionExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,12 @@
* THE SOFTWARE.
*/

using System;
using System.Collections.Generic;
using net.r_eg.MvsSln.Extensions;

namespace net.r_eg.DllExport.Wizard.Extensions
{
internal static class CollectionExtension
{
/// <summary>
/// Foreach in Linq manner.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="items"></param>
/// <param name="act">The action that should be executed for each item.</param>
public static IEnumerable<T> Each<T>(this IEnumerable<T> items, Action<T> act)
{
items?.ForEach((x, i) => act(x));
return items;
}

/// <summary>
/// To combine string items.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion Wizard/UI/Controls/ProjectItemsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using System.Windows.Forms;
using net.r_eg.DllExport.Wizard.Extensions;
using net.r_eg.MvsSln.Core;
using net.r_eg.MvsSln.Extensions;

namespace net.r_eg.DllExport.Wizard.UI.Controls
{
Expand Down Expand Up @@ -121,7 +122,7 @@ public void Reset(bool disposing)
public IEnumerable<IProject> GetInactiveInstalled(IEnumerable<IProject> projects)
{
return projects?.Where(p => p.Installed && Data.All(d => d.DxpIdent != p.DxpIdent))
.Each(p => p.Config.Install = true); // since we're not using ConfigureProject()
.ForEach(p => p.Config.Install = true); // since we're not using ConfigureProject()
}

public ProjectItemsControl()
Expand Down

0 comments on commit 7490f86

Please sign in to comment.