-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/development'
- Loading branch information
Showing
42 changed files
with
1,429 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// <copyright file="ApplicationTerminateArgs.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright> | ||
|
||
namespace FileConverter | ||
{ | ||
public class ApplicationTerminateArgs : System.EventArgs | ||
{ | ||
public ApplicationTerminateArgs(float remainingTimeBeforeTermination) | ||
{ | ||
this.RemainingTimeBeforeTermination = remainingTimeBeforeTermination; | ||
} | ||
|
||
public float RemainingTimeBeforeTermination | ||
{ | ||
get; | ||
private set; | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
Application/FileConverter/ConversionJobs/CancelConversionJobCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// <copyright file="CancelConversionJobCommand.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright> | ||
|
||
namespace FileConverter.ConversionJobs | ||
{ | ||
using System; | ||
using System.Windows.Input; | ||
|
||
public class CancelConversionJobCommand : ICommand | ||
{ | ||
private readonly ConversionJob conversionJob; | ||
|
||
public CancelConversionJobCommand(ConversionJob conversionJob) | ||
{ | ||
this.conversionJob = conversionJob; | ||
} | ||
|
||
public event EventHandler CanExecuteChanged; | ||
|
||
public bool CanExecute(object parameter) | ||
{ | ||
if (this.conversionJob == null) | ||
{ | ||
return false; | ||
} | ||
|
||
return this.conversionJob.IsCancelable && this.conversionJob.State == ConversionJob.ConversionState.InProgress; | ||
} | ||
|
||
public void Execute(object parameter) | ||
{ | ||
this.conversionJob?.Cancel(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ public enum ConversionFlags | |
{ | ||
None = 0x00, | ||
|
||
CdaExtraction = 0x01, | ||
CdDriveExtraction = 0x01, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.