private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            //itemDetailsTB selectedItem = (itemDetailsTB)deleteList.SelectedItem;
            var res = deleteCli.searchItem(txtSerch.Text).ToList();

            updateItem newUpdate = new updateItem(res[0].Name);

            this.NavigationService.Navigate(newUpdate);
        }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         itemDetailsTB selectedItem = (itemDetailsTB)deleteList.SelectedItem;
         updateItem    newUpdate    = new updateItem(selectedItem.Name);
         this.NavigationService.Navigate(newUpdate);
     }
     catch
     {
         MessageBox.Show("Please select record first!", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
Exemple #3
0
        private void MenuItem_Click_16(object sender, RoutedEventArgs e)
        {
            updateItem newUpdateItem = new updateItem(null);

            homeFrame.Content = newUpdateItem;
        }