Skip to content

Commit

Permalink
made small changes to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
N00rAhmed committed Nov 29, 2023
1 parent 45abcbd commit 0cf9524
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 17 deletions.
Binary file modified .vs/TASK-APP/v17/.suo
Binary file not shown.
26 changes: 13 additions & 13 deletions TASK-APP/TaskApp.Designer.cs

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

8 changes: 8 additions & 0 deletions TASK-APP/TaskApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Npgsql;
using System.Runtime.InteropServices;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Window;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;


namespace TASK_APP
Expand Down Expand Up @@ -89,6 +90,13 @@ private void textBox1_TextChanged(object sender, EventArgs e)

private void button2_Click(object sender, EventArgs e)
{

if (string.IsNullOrWhiteSpace(taskInput.Text))
{
MessageBox.Show("Text field is empty", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return; // Stop further execution
}

string dbquery = "INSERT INTO Task(Task_Name, UserID)" + "VALUES ('" + taskInput.Text + "','" + Login.uid + "')";

AmendDatabase(dbquery);
Expand Down
2 changes: 1 addition & 1 deletion TASK-APP/bin/Debug/TASK-APP.application
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>v+GK21Xkf4pjJKeWD7OjN5HhXO4o/YglUHMO/e9ve08=</dsig:DigestValue>
<dsig:DigestValue>o5SAUBZEQ9pXkyx7p7hv3pyZJBcnKRWaF2qwCCOR7+s=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified TASK-APP/bin/Debug/TASK-APP.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion TASK-APP/bin/Debug/TASK-APP.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>G6KUuraF+eLFnV0RgJfi5M679KodptE3Bq6vYNTM0RY=</dsig:DigestValue>
<dsig:DigestValue>UNb6eKf2FTOoxrOLMJFh4aUn5o8P5m0vh436MPu2VRk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified TASK-APP/bin/Debug/TASK-APP.pdb
Binary file not shown.
Binary file modified TASK-APP/bin/Debug/app.publish/TASK-APP.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion TASK-APP/obj/Debug/TASK-APP.application
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>v+GK21Xkf4pjJKeWD7OjN5HhXO4o/YglUHMO/e9ve08=</dsig:DigestValue>
<dsig:DigestValue>o5SAUBZEQ9pXkyx7p7hv3pyZJBcnKRWaF2qwCCOR7+s=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified TASK-APP/obj/Debug/TASK-APP.csproj.GenerateResource.cache
Binary file not shown.
Binary file modified TASK-APP/obj/Debug/TASK-APP.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion TASK-APP/obj/Debug/TASK-APP.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>G6KUuraF+eLFnV0RgJfi5M679KodptE3Bq6vYNTM0RY=</dsig:DigestValue>
<dsig:DigestValue>UNb6eKf2FTOoxrOLMJFh4aUn5o8P5m0vh436MPu2VRk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified TASK-APP/obj/Debug/TASK-APP.pdb
Binary file not shown.

0 comments on commit 0cf9524

Please sign in to comment.