Interaction logic for WindowDetail.xaml
Наследование: System.Windows.Window
Пример #1
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("nemojte klikat", "Upozorenje", MessageBoxButton.OK, MessageBoxImage.Asterisk);
            WindowDetail detail = new WindowDetail(svePticurine);
            //Provjeri je li unesena nova ptica i ažuriraj grid
            if ((bool)detail.ShowDialog())
            {
                ptice_grid.ItemsSource = null; //Refreshiraj, može i ovo na bolji način
                ptice_grid.ItemsSource = svePticurine;

            }
        }
Пример #2
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("nemojte klikat", "Upozorenje", MessageBoxButton.OK, MessageBoxImage.Asterisk);
            WindowDetail detail = new WindowDetail(svePticurine);

            //Provjeri je li unesena nova ptica i ažuriraj grid
            if ((bool)detail.ShowDialog())
            {
                ptice_grid.ItemsSource = null; //Refreshiraj, može i ovo na bolji način
                ptice_grid.ItemsSource = svePticurine;
            }
        }