Skip to content

Commit

Permalink
Forma unos
Browse files Browse the repository at this point in the history
Dodao sam trenutno funkcionalnosti za gumb spremi
  • Loading branch information
Juric22 committed Jun 12, 2024
1 parent e338328 commit 239583c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Software/SZUUP/SZUUP/FrmUnos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ public FrmUnos()

private void btnSpremi_Click(object sender, EventArgs e)
{
// Save button click event handler
// Show a confirmation dialog
var result = MessageBox.Show("Jeste li sigurni da želite spremiti podatke?", "Potvrda",
MessageBoxButtons.YesNo, MessageBoxIcon.Question);

// If the user clicks "Yes" or "No," do nothing and return to the current form
if (result == DialogResult.Yes)
{
MessageBox.Show("Podaci su uspješno spremljeni.", "Uspjeh", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}

private void btnOdustani_Click(object sender, EventArgs e)
Expand Down

0 comments on commit 239583c

Please sign in to comment.