-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
5,110 additions
and
517 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.48 MB
.vs/Serial Monitor/FileContentIndex/2e7ddc35-264f-400d-aa3d-d896bec04e35.vsidx
Binary file not shown.
Binary file removed
BIN
-659 KB
.vs/Serial Monitor/FileContentIndex/4abefeda-e210-49a5-bd94-f5fe58bdbafc.vsidx
Binary file not shown.
Binary file renamed
BIN
+818 KB
...bcc3e5b-d8f8-415c-944a-4dd0ebab6346.vsidx → ...9934267-d1a3-47e0-b0d8-d563d4f5636b.vsidx
Binary file not shown.
Binary file added
BIN
+820 KB
.vs/Serial Monitor/FileContentIndex/95712181-63ae-4fbd-a7a0-b8253f77638b.vsidx
Binary file not shown.
Binary file renamed
BIN
+671 KB
...6f510a1-3bc9-46e2-bcff-56c1a992a912.vsidx → ...c3eaf2e-a80e-40e3-bf97-9aa052e38dfd.vsidx
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,63 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Serial_Monitor.Classes.Button_Commands { | ||
public class BtnCommand { | ||
public BtnCommand() { | ||
isSet = false; | ||
} | ||
CommandType commandType = CommandType.NoAssignedCommand; | ||
public CommandType Type { | ||
get { return commandType; } | ||
set { | ||
commandType = value; | ||
isEdited = true; | ||
} | ||
} | ||
public void SetValue(CommandType Type, string CommandLine, string Channel) { | ||
isSet = true; | ||
commandType = Type; | ||
this.commandLine = CommandLine; | ||
this.channel = Channel; | ||
} | ||
public void Reset() { | ||
isSet = false; | ||
isEdited = false; | ||
commandType = CommandType.NoAssignedCommand; | ||
commandLine = ""; | ||
} | ||
string commandLine = ""; | ||
public string CommandLine { | ||
get { return commandLine; } | ||
set { | ||
commandLine = value; | ||
isEdited = true; | ||
} | ||
} | ||
string channel = ""; | ||
public string Channel { | ||
get { return channel; } | ||
set { | ||
channel = value; | ||
isEdited = true; | ||
} | ||
} | ||
private bool isEdited = false; | ||
public bool IsEdited { | ||
get { return isEdited; } | ||
} | ||
private bool isSet = false; | ||
public bool IsSet { | ||
get { return isSet; } | ||
} | ||
} | ||
public enum CommandType { | ||
NoAssignedCommand = 0x00, | ||
SendString = 0x01, | ||
SendText = 0x02, | ||
ExecuteProgram = 0x04 | ||
} | ||
} |
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
Oops, something went wrong.