/// <summary> /// Obtiene el proyecto destino seleccionado /// </summary> private PluginPathItemViewModel GetSelectedPath() { PluginPathItemViewModel item = PathPlugins.SelectedItem; if (item == null) { return(null); } else { return(item); } }
/// <summary> /// Borra el proyecto destino /// </summary> private void DeletePathPlugin() { PluginPathItemViewModel target = GetSelectedPath(); if (target != null && Globals.HostController.ControllerWindow.ShowQuestion($"¿Realmente desea quitar '{target.Text}'?\nDirectorio: {target.Path}")) { // Borra el directorio PathPlugins.ListItems.Remove(target); // Indica que ha habido modificaciones IsUpdated = true; } }