Skip to content

Commit

Permalink
Updated nuget package and fixed code to make it work again
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Jul 28, 2017
1 parent aed90c7 commit e6b7b3b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions DeveImageOptimizerWPF/DeveImageOptimizerWPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="DeveImageOptimizer, Version=1.0.62.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\DeveImageOptimizer.1.0.62\lib\netstandard1.5\DeveImageOptimizer.dll</HintPath>
<Reference Include="DeveImageOptimizer, Version=1.0.65.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\DeveImageOptimizer.1.0.65\lib\netstandard1.5\DeveImageOptimizer.dll</HintPath>
</Reference>
<Reference Include="GalaSoft.MvvmLight, Version=5.3.0.19026, Culture=neutral, PublicKeyToken=e7570ab207bcb616, processorArchitecture=MSIL">
<HintPath>..\packages\MvvmLightLibs.5.3.0.0\lib\net45\GalaSoft.MvvmLight.dll</HintPath>
Expand Down
21 changes: 11 additions & 10 deletions DeveImageOptimizerWPF/State/ProcessingState/FilesProcessingState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ public class FilesProcessingState : INotifyPropertyChanged, IFilesProcessingStat

public event PropertyChangedEventHandler PropertyChanged;

public void AddProcessedFile(string file)
public void AddProcessedFile(OptimizedFileResult optimizedFileResult)
{
ProcessedFiles.Add(file);
OnPropertyChanged(nameof(ProcessedFiles));
}

public void AddFailedFile(string file)
{
FailedFiles.Add(file);
OnPropertyChanged(nameof(FailedFiles));
if (optimizedFileResult.Successful)
{
ProcessedFiles.Add(optimizedFileResult.Path);
OnPropertyChanged(nameof(ProcessedFiles));
}
else
{
FailedFiles.Add(optimizedFileResult.Path);
OnPropertyChanged(nameof(FailedFiles));
}
}


// Create the OnPropertyChanged method to raise the event
public virtual void OnPropertyChanged(string name)
{
Expand Down
2 changes: 1 addition & 1 deletion DeveImageOptimizerWPF/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="CommonServiceLocator" version="1.3" targetFramework="net462" />
<package id="DeveImageOptimizer" version="1.0.62" targetFramework="net462" />
<package id="DeveImageOptimizer" version="1.0.65" targetFramework="net462" />
<package id="Fody" version="2.1.2" targetFramework="net462" developmentDependency="true" />
<package id="ILRepack" version="2.0.13" targetFramework="net462" />
<package id="ImageSharp" version="1.0.0-alpha9-00173" targetFramework="net462" />
Expand Down

0 comments on commit e6b7b3b

Please sign in to comment.