Skip to content

Commit

Permalink
Added help, reset button, ui enchantments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvtx committed Dec 3, 2019
1 parent 6562fc1 commit 1f7f19c
Show file tree
Hide file tree
Showing 5 changed files with 1,048 additions and 466 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
#**/[Pp]ackages/*
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
Expand Down
2 changes: 1 addition & 1 deletion BufferInput.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions BufferInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class BufferInputForm : Form
{
private bool DealogIsOk = false;
public byte[] buf { get; set; }
public byte BytesNum, RemainingNum;
public byte BytesNum, RemainingNum, count = 1;

public BufferInputForm()
{
Expand Down Expand Up @@ -77,7 +77,17 @@ private void InputByteButton_Click_1(object sender, EventArgs e)
buf[BytesNum - RemainingNum] = (byte)HexInput.Value;
RemainingNum--;
MsgScintilla.ReadOnly = false;
MsgScintilla.AppendText(((int)HexInput.Value).ToString("X") + " ");
if (count % 8 == 0)
{
MsgScintilla.AppendText(((int)HexInput.Value).ToString("X") + "\r\n");
count = 1;
}
else
{
count++;
MsgScintilla.AppendText(((int)HexInput.Value).ToString("X") + " ");
}

MsgScintilla.ReadOnly = true;
BytesLeftLabel.Text = RemainingNum.ToString();
HexInput.Value = 0;
Expand Down
Loading

0 comments on commit 1f7f19c

Please sign in to comment.