예제 #1
0
파일: Bod.xaml.cs 프로젝트: vodolijabg/LS
        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();
            }
        }
예제 #2
0
파일: Bod.xaml.cs 프로젝트: vodolijabg/LS
        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();
            //}
        }
예제 #3
0
파일: Bod.xaml.cs 프로젝트: vodolijabg/LS
 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();
 }