Ejemplo n.º 1
0
        /// <summary>
        ///		Obtiene el proyecto destino seleccionado
        /// </summary>
        private PluginPathItemViewModel GetSelectedPath()
        {
            PluginPathItemViewModel item = PathPlugins.SelectedItem;

            if (item == null)
            {
                return(null);
            }
            else
            {
                return(item);
            }
        }
Ejemplo n.º 2
0
        /// <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;
            }
        }