private void DataGridTareas_MouseDoubleClick(object sender, MouseButtonEventArgs e) { int selectedRow = DataGridTareas.SelectedIndex; if (selectedRow >= 0) { DialogoTarea dialogoTarea = new DialogoTarea(logicaNegocio, selectedRow, (Tarea)DataGridTareas.SelectedItem); dialogoTarea.Show(); } }
private void MenuItemNuevo_Click(object sender, RoutedEventArgs e) { DialogoTarea dialogoTarea = new DialogoTarea(logicaNegocio); dialogoTarea.Show(); }