Skip to content

Commit

Permalink
5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvita committed Oct 18, 2020
1 parent d507b5b commit 2614370
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 35 deletions.
81 changes: 47 additions & 34 deletions PointerSearcher/Form1.Designer.cs

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

11 changes: 10 additions & 1 deletion PointerSearcher/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ private void getstatus_Click(object sender, EventArgs e)
c = s.Receive(b);
count = BitConverter.ToInt32(k, 0);
statusBox.Text = Convert.ToString(b[0]) + " . " + Convert.ToString(b[1]) + " . " + Convert.ToString(b[2]) + " . " + Convert.ToString(b[3]);
if (b[3] >= 147) statusBox.BackColor = System.Drawing.Color.LightGreen; else statusBox.BackColor = System.Drawing.Color.Red;
if (b[3] >= 149) statusBox.BackColor = System.Drawing.Color.LightGreen; else statusBox.BackColor = System.Drawing.Color.Red;
f = s.Available;
b = new byte[f];
s.Receive(b);
Expand Down Expand Up @@ -868,6 +868,11 @@ private int receivedata(ref byte[] dataset)
private long[,] pointer_candidate;
private void button3_Click(object sender, EventArgs e)
{
if (dataGridView1.Rows[fileselect].Cells[0].Value !=null && overwrite.Checked == false)
{
MessageBox.Show("File exist, check overwrite if you wish to overwrite");
return;
}
pausebutton_Click(sender, e);
if (!is_attached()) return;
if (!command_available()) return;
Expand Down Expand Up @@ -946,6 +951,9 @@ private void button3_Click(object sender, EventArgs e)
info.AddPointer(from, to);
}
RecSizeBox.Text = Convert.ToString(totaldata+c1);
long starta = BitConverter.ToInt64(dataset, 0);
if (starta > address2)
{ starta = starta + 1; }
progressBar2.Value = (int)(100 * (BitConverter.ToInt64(dataset, 0) - address1) / (((address2 - address1)==0)? 1: (address2 - address1)));
progressBar1.Value = progressBar2.Value;
timeusedBox.Text = Convert.ToString(sw.ElapsedMilliseconds);
Expand Down Expand Up @@ -994,6 +1002,7 @@ private void button3_Click(object sender, EventArgs e)
RecSizeBox.BackColor = System.Drawing.Color.LightGreen;
timeusedBox.Text = Convert.ToString(sw.ElapsedMilliseconds);
stopbutton.Enabled = false;
resumebutton_Click(sender, e);
});
}).Start();

Expand Down

0 comments on commit 2614370

Please sign in to comment.