private void izbor_Click(object sender, RoutedEventArgs e) { Window w = new Dialogs.TypeTable(type); w.Owner = this; w.ShowDialog(); SelectedType = TypeTable.SelectedType; if (SelectedType != null) { foreach (Model.Lokal lokali in Prikaz.SelectedItems) { lokali.type = SelectedType; } for (int i = 0; i < Prikaz.SelectedItems.Count; i++) { referenca_lokali.Remove((Model.Lokal)(Prikaz.SelectedItems[i])); } } if (referenca_lokali.Count == 0) { MainWindow.tip.Remove(type); Close(); } }
private void SelectTypeTable_Click(object sender, RoutedEventArgs e) { Window w = new Dialogs.TypeTable(); w.Owner = this; w.ShowDialog(); if (TypeTable.SelectedType != null) { tipLokala.SelectedItem = TypeTable.SelectedType; } }
private void izborZaSve_Click(object sender, RoutedEventArgs e) { Window w = new Dialogs.TypeTable(type); w.Owner = this; w.ShowDialog(); SelectedType = TypeTable.SelectedType; if (SelectedType != null) { foreach (Model.Lokal lokali in referenca_lokali) { lokali.type = SelectedType; } MainWindow.tip.Remove(type); Close(); } }