Ejemplo n.º 1
0
 private void CavebotEditBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         MenuItem lbItem = sender as MenuItem;
         var dataContext = lbItem.DataContext;
         Waypoint data = (Waypoint)dataContext;
         windowCbEditWpt = new CbEditWpt(data);
         windowCbEditWpt.Owner = this;
         windowCbEditWpt.ShowDialog();
     }
     catch(Exception ex)
     {
         Helpers.Debug.Report(ex);
     }
 }
Ejemplo n.º 2
0
 private void WayListDBClick(object sender, MouseButtonEventArgs mouseButtonEventArgs)
 {
     ListBoxItem lbItem = sender as ListBoxItem;
     var dataContext = lbItem.DataContext;
     Waypoint data = (Waypoint)dataContext;
     CbEditWpt window = new CbEditWpt(data);
     window.Owner = this;
     window.ShowDialog();
 }