Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        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();
            //}
        }
Beispiel #3
0
 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();
 }