private void buttonIzmeni_Click(object sender, RoutedEventArgs e) { ObservableCollection<DB.Bod> _bodovi = (ObservableCollection<DB.Bod>)listViewBod.ItemsSource; DB.Bod _bod = (DB.Bod)listViewBod.SelectedItem; if (_bodovi != null && _bod != null) { BodDetaljno _bodDetaljno = new BodDetaljno(this, true); //_bodDetaljno.WindowStyle = WindowStyle.ToolWindow; _bodDetaljno.Owner = Window.GetWindow(this); _bodDetaljno.WindowStartupLocation = WindowStartupLocation.CenterOwner; _bodDetaljno.ShowDialog(); } }
private void listViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e) { //ObservableCollection<DB.Bod> _bodovi = (ObservableCollection<DB.Bod>)listViewBod.ItemsSource; //DB.Bod _bod = (DB.Bod)listViewBod.SelectedItem; //if (_bodovi != null && _bod != null) //{ BodDetaljno _bodDetaljno = new BodDetaljno(this, true); //_bodDetaljno.WindowStyle = WindowStyle.ToolWindow; _bodDetaljno.Owner = Window.GetWindow(this); _bodDetaljno.WindowStartupLocation = WindowStartupLocation.CenterOwner; _bodDetaljno.ShowDialog(); //} }
private void buttonDodaj_Click(object sender, RoutedEventArgs e) { BodDetaljno _bodDetaljno = new BodDetaljno(this, false); //_bodDetaljno.WindowStyle = WindowStyle.ToolWindow; _bodDetaljno.Owner = Window.GetWindow(this); _bodDetaljno.WindowStartupLocation = WindowStartupLocation.CenterOwner; _bodDetaljno.ShowDialog(); }