private void buttonEdit_Click(object sender, RoutedEventArgs e) { ResourceTag rt = new ResourceTag(SelectedTag); int index = 0; int brojac = -1; foreach (ResourceTag tag in Tags) { brojac++; if (tag.Id.Equals(rt.Id)) { index = brojac; } } if (SelectedTag != null) { EditTag editTag = new EditTag(SelectedTag.Id, tw); editTag.Show(); } else { MessageBox.Show("Molimo, odaberite etiketu za ažuriranje", "Ažuriranje etikete"); } }
private void buttonEdit_Click(object sender, RoutedEventArgs e) { if (SelectedTag != null) { EditTag editTag = new EditTag(SelectedTag.Id, tw); editTag.Show(); } else { MessageBox.Show("Molimo, odaberite etiketu za ažuriranje", "Ažuriranje etikete"); } }