示例#1
0
    public void retrievePlugins()
    {
        List<PluginDAO> plugins = new List<PluginDAO>();

        try
        {
            IDBController controller = new SqlController();
            plugins = controller.GetPluginsOwnedByUser(_currentUser);
        }
        catch (ArgumentNullException)
        {
            // Should not happen
        }

        printPluginsToPage(plugins, pluginsUserOwns, @"<li>You do not own any plugins. Press ""Create Plugin"" to make a new one!</li>");
    }