-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from Nfactor26/async-methods-for-wizard-and-s…
…tagedsmartscreen Async methods for Wizard and StagedSmartScreen
- Loading branch information
Showing
13 changed files
with
125 additions
and
138 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,56 @@ | ||
namespace Pixel.Automation.Editor.Core | ||
{ | ||
public abstract class StagedSmartScreen : SmartScreen, IStagedScreen | ||
{ | ||
public IStagedScreen NextScreen | ||
{ | ||
get; set; | ||
} | ||
|
||
public IStagedScreen PreviousScreen | ||
{ | ||
get; set; | ||
} | ||
|
||
public virtual bool IsValid | ||
{ | ||
get | ||
{ | ||
return !HasErrors; | ||
} | ||
} | ||
using System.Threading.Tasks; | ||
|
||
namespace Pixel.Automation.Editor.Core; | ||
|
||
public abstract object GetProcessedResult(); | ||
public abstract class StagedSmartScreen : SmartScreen, IStagedScreen | ||
{ | ||
public IStagedScreen NextScreen | ||
{ | ||
get; set; | ||
} | ||
|
||
public virtual void OnCancelled() | ||
{ | ||
} | ||
public IStagedScreen PreviousScreen | ||
{ | ||
get; set; | ||
} | ||
|
||
public virtual void OnFinished() | ||
public virtual bool IsValid | ||
{ | ||
get | ||
{ | ||
|
||
return !HasErrors; | ||
} | ||
} | ||
|
||
public virtual void OnNextScreen() | ||
{ | ||
|
||
} | ||
public abstract object GetProcessedResult(); | ||
|
||
public virtual void OnPreviousScreen() | ||
{ | ||
|
||
} | ||
public virtual async Task OnCancelled() | ||
{ | ||
await Task.CompletedTask; | ||
} | ||
|
||
public virtual async Task OnFinished() | ||
{ | ||
await Task.CompletedTask; | ||
} | ||
|
||
public abstract bool TryProcessStage(out string errorDescription); | ||
|
||
public virtual bool Validate() | ||
{ | ||
return IsValid; | ||
} | ||
public virtual async Task OnNextScreen() | ||
{ | ||
await Task.CompletedTask; | ||
} | ||
|
||
public virtual async Task OnPreviousScreen() | ||
{ | ||
await Task.CompletedTask; | ||
} | ||
|
||
public virtual async Task<bool> TryProcessStage() | ||
{ | ||
return await Task.FromResult(true); | ||
} | ||
|
||
public virtual bool Validate() | ||
{ | ||
return IsValid; | ||
} | ||
} |
Oops, something went wrong.