Click here to Skip to main content
15,892,059 members
Articles / Programming Languages / C#

The Code Project Browser Add-in for Visual Studio 2005 and 2008

Rate me:
Please Sign up or sign in to vote.
4.90/5 (108 votes)
27 Mar 2008CPOL9 min read 317.3K   4.9K   296  
An add-in for browsing, downloading and managing CodeProject samples directly in Visual Studio
//  Copyright (c) 2007, SlickEdit, Inc
//  Email:  info@slickedit.com
//  All rights reserved.
//
//  Redistribution and use in source and binary forms, with or without modification, 
//  are permitted provided that the following conditions are met:
//
//  Redistributions of source code must retain the above copyright notice, 
//  this list of conditions and the following disclaimer. 
//  Redistributions in binary form must reproduce the above copyright notice, 
//  this list of conditions and the following disclaimer in the documentation 
//  and/or other materials provided with the distribution. 
//
//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
//  PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER 
//  REMAINS UNCHANGED.

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace CPBrowser
{
    /// <summary>
    /// Represents a single entry in the Project tree.  The project tree serializes
    /// a list of these objects to persist the information about the projects 
    /// contained in the My Code Project Downloads directory.
    /// </summary>
    [XmlRootAttribute("ProjectEntry")]
    [Serializable]
    public class ProjectEntry
    {
        // the root folder for the project
        private string m_rootFolder = "";
        // the URL to the web page
        private string m_url = "";

        /// <summary>
        /// Constructor.  This constructor is required for serialization.
        /// </summary>
        public ProjectEntry() { }

        /// <summary>
        /// Constructor.  This constructor allows for an object to be created and 
        /// initialized in one call.
        /// </summary>
        public ProjectEntry(string rootFolder, string url)
        {
            m_rootFolder = rootFolder;
            m_url = url;
        }

        /// <summary>
        /// The root folder for the project download.
        /// </summary>
        public string RootFolder
        {
            get { return m_rootFolder; }
            set { m_rootFolder = value; }
        }

        /// <summary>
        /// The URL to the web page.
        /// </summary>
        public string Url
        {
            get { return m_url; }
            set { m_url = value; }
        }

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
SlickEdit Inc. provides software developers with multi-language development tools and the most advanced code editors available. Power programmers, from Fortune 500 companies to individuals, have chosen SlickEdit as their development tool of choice for over 19 years. Proven on Windows, Linux, UNIX, and Mac OS X platforms, SlickEdit products enable even the most accomplished developers to write more code faster, and more accurately. For more information about SlickEdit and free trial downloads, please visit http://www.slickedit.com.
This is a Organisation

1 members

Comments and Discussions