-
-
Notifications
You must be signed in to change notification settings - Fork 38
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 #65 from mattpannella/develop
merge develop into master
- Loading branch information
Showing
5 changed files
with
172 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
namespace pannella.analoguepocket; | ||
|
||
public class Base | ||
{ | ||
public event EventHandler<StatusUpdatedEventArgs>? StatusUpdated; | ||
protected void Divide() | ||
{ | ||
_writeMessage("-------------"); | ||
} | ||
|
||
protected void _writeMessage(string message) | ||
{ | ||
StatusUpdatedEventArgs args = new StatusUpdatedEventArgs(); | ||
args.Message = message; | ||
OnStatusUpdated(args); | ||
} | ||
|
||
protected virtual void OnStatusUpdated(StatusUpdatedEventArgs e) | ||
{ | ||
EventHandler<StatusUpdatedEventArgs> handler = StatusUpdated; | ||
if(handler != null) | ||
{ | ||
handler(this, e); | ||
} | ||
} | ||
} | ||
|
||
public class StatusUpdatedEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Contains the message from the updater | ||
/// </summary> | ||
public string Message { get; set; } | ||
} |
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.