public void DeleteProgram(PluginProgram program) { if (CanDeleteProgram(program)) File.Delete(program.Path); // Reload programs ReloadPrograms(); }
public bool CanDeleteProgram(PluginProgram program) { return(UserPrograms.Any(x => x.Library == program.Library && x.Name == program.Name && x.Path == program.Path && File.Exists(program.Path))); }
public bool CanDeleteProgram(PluginProgram program) { return UserPrograms.Any(x => x.Library == program.Library && x.Name == program.Name && x.Path == program.Path && File.Exists(program.Path)); }
public void DeleteProgram(PluginProgram program) { if (CanDeleteProgram(program)) { File.Delete(program.Path); } // Reload programs ReloadPrograms(); }