Skip to content

Commit

Permalink
Fix non camera input & text box phone length
Browse files Browse the repository at this point in the history
  • Loading branch information
nCodesDotEU committed Sep 4, 2021
1 parent 9c33962 commit c6bab26
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 2 deletions.
Binary file modified .vs/CoronaTracker/v16/.suo
Binary file not shown.
Binary file added CoronaTracker Setup/Release/release_1_2_0.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions CoronaTracker/Database/DatabaseMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ select nic.GetPhysicalAddress().ToString()
).FirstOrDefault();
string externalIpString = new WebClient().DownloadString("http://icanhazip.com").Replace("\\r\\n", "").Replace("\\n", "").Trim();

MessageBox.Show("ID: " + GUser_ID + "\n" +
"IP: " + externalIpString + "\n" +
"MAC:" + macAddr + "\n" +
"Success: " + logIn);

var command = new MySqlCommand("INSERT INTO LoginAttempts(LoginAttempts_DateTime, LoginAttempts_MAC, LoginAttempts_IP, LoginAttempts_IsSuccess, Employee_Employee_ID) VALUES('" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "', '" + macAddr + "', '" + externalIpString + "', " + logIn + ", " + GUser_ID + ");", connection);
command.ExecuteNonQuery();
}
Expand Down
2 changes: 1 addition & 1 deletion CoronaTracker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static void Main()
{

DatabaseMethods.SetupDatabase();
ProgramVariables.Version = "1.2.0";
ProgramVariables.Version = "1.2.1";
if (!DatabaseMethods.CheckVersion().Equals(""))
{
System.Diagnostics.Process.Start(DatabaseMethods.GetLinkToLastestVersion());
Expand Down
1 change: 1 addition & 0 deletions CoronaTracker/SubForms/LoginForm.Designer.cs

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

2 changes: 2 additions & 0 deletions CoronaTracker/SubForms/PatientSubSubForms/FindsSubSubForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ public FindsSubSubForm()

CaptureDevice = new FilterInfoCollection(FilterCategory.VideoInputDevice);
FinalFrame = null;
if (CaptureDevice.Count == 0)
button1.Enabled = false;
finds = new List<FindsInstance>();
buttonPattern2.Hide();
index2 = 0;
Expand Down
3 changes: 3 additions & 0 deletions CoronaTracker/SubForms/PatientSubSubForms/ListSubSubForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public ListSubSubForm()
CaptureDevice = new FilterInfoCollection(FilterCategory.VideoInputDevice);
FinalFrame = new VideoCaptureDevice();

if (CaptureDevice.Count == 0)
button1.Enabled = false;

}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ public VaccinationsSubSubForm()
CaptureDevice = new FilterInfoCollection(FilterCategory.VideoInputDevice);
FinalFrame = new VideoCaptureDevice();

if (CaptureDevice.Count == 0)
button1.Enabled = false;

DatabaseMethods.GetVaccineTypes().ForEach(x =>
{
listBox1.Items.Add(x.Name);
Expand Down
Binary file modified CoronaTracker/bin/Debug/CoronaTracker.exe
Binary file not shown.
Binary file modified CoronaTracker/bin/Debug/CoronaTracker.pdb
Binary file not shown.
Binary file added CoronaTracker/bin/Debug/test_release.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5a6d5c7ce519b4447f82d25fe873eb584d0ccfa5
f4a43485269abfbdffe7d09527b87ff7adc18a2c
Binary file not shown.
Binary file modified CoronaTracker/obj/Debug/CoronaTracker.exe
Binary file not shown.
Binary file modified CoronaTracker/obj/Debug/CoronaTracker.pdb
Binary file not shown.

0 comments on commit c6bab26

Please sign in to comment.