Skip to content

Commit

Permalink
Dodatan gumb
Browse files Browse the repository at this point in the history
Dodan je gumb za sva jela kako bi se mogla vidjeti ponovo sva jela nakon pretrazivanja
  • Loading branch information
Juric22 committed Jun 13, 2024
1 parent 9979c61 commit a0a12c7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
12 changes: 12 additions & 0 deletions Software/SZUUP/SZUUP/FrmPopisJela.Designer.cs

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

9 changes: 7 additions & 2 deletions Software/SZUUP/SZUUP/FrmPopisJela.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public FrmPopisJela()
btnPretraziJelo.Click += new EventHandler(this.btnPretraziJelo_Click);
btnUrediJelo.Click += new EventHandler(this.btnUrediJelo_Click);
btnObrisiJelo.Click += new EventHandler(this.btnObrisiJelo_Click);
btnZaposlenici.Click += new EventHandler(this.btnZaposlenici_Click); // Manually added this line
btnZaposlenici.Click += new EventHandler(this.btnZaposlenici_Click);
btnSvaJela.Click += new EventHandler(this.btnSvaJela_Click); // Added this line
}

private void FrmPopisJela_Load(object sender, EventArgs e)
Expand Down Expand Up @@ -75,6 +76,11 @@ private void btnPretraziJelo_Click(object sender, EventArgs e)
}
}

private void btnSvaJela_Click(object sender, EventArgs e)
{
dgvJela.DataSource = allJela; // Reset to show all meals
}

private void btnUrediJelo_Click(object sender, EventArgs e)
{
if (dgvJela.SelectedRows.Count == 0)
Expand Down Expand Up @@ -131,6 +137,5 @@ private void btnZaposlenici_Click(object sender, EventArgs e)
FrmZaposlenici frmZaposlenici = new FrmZaposlenici();
frmZaposlenici.ShowDialog();
}

}
}

0 comments on commit a0a12c7

Please sign in to comment.