Пример #1
0
        private void buttonIzmeni_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection<DB.Nivo> _nivoi = (ObservableCollection<DB.Nivo>)listViewNivo.ItemsSource;
            DB.Nivo _nivo = (DB.Nivo)listViewNivo.SelectedItem;

            if (_nivoi != null && _nivo != null)
            {
                NivoDetaljno _nivoDetaljno = new NivoDetaljno(this, true);
                //_nivoDetaljno.WindowStyle = WindowStyle.ToolWindow;
                _nivoDetaljno.Owner = Window.GetWindow(this);
                _nivoDetaljno.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                _nivoDetaljno.ShowDialog();
            }
        }
Пример #2
0
        private void listViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            //ObservableCollection<DB.Nivo> _nivoi = (ObservableCollection<DB.Nivo>)listViewNivo.ItemsSource;
            //DB.Nivo _nivo = (DB.Nivo)listViewNivo.SelectedItem;

            //if (_nivoi != null && _nivo != null)
            //{
                NivoDetaljno _nivoDetaljno = new NivoDetaljno(this, true);
                //_nivoDetaljno.WindowStyle = WindowStyle.ToolWindow;
                _nivoDetaljno.Owner = Window.GetWindow(this);
                _nivoDetaljno.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                _nivoDetaljno.ShowDialog();
            //}
        }
Пример #3
0
 private void buttonDodaj_Click(object sender, RoutedEventArgs e)
 {
     NivoDetaljno _nivoDetaljno = new NivoDetaljno(this, false);
     //_nivoDetaljno.WindowStyle = WindowStyle.ToolWindow;
     _nivoDetaljno.Owner = Window.GetWindow(this);
     _nivoDetaljno.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     _nivoDetaljno.ShowDialog();
 }