// // (C) Copyright 2003-2019 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited warranty and // restricted rights notice below appear in all supporting // documentation. // // AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC. // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // // Use, duplication, or disclosure by the U.S. Government is subject to // restrictions set forth in FAR 52.227-19 (Commercial Computer // Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) // (Rights in Technical Data and Computer Software), as applicable. // using System; using System.Collections.Generic; using System.Text; namespace RvtSamples { /// /// The class contains information of a sample item to be added into samples menu /// public class SampleItem { #region Variables /// /// category /// private string m_category; /// /// display name /// private string m_displayName; /// /// path of large image /// private string m_largeImage; /// /// path of image /// private string m_image; /// /// description /// private string m_description; /// /// path of assembly /// private string m_assembly; /// /// class name /// private string m_className; #endregion #region Properties /// /// category /// public string Category { get { return m_category; } } /// /// display name /// public string DisplayName { get { return m_displayName; } } /// /// path of large image /// public string LargeImage { get { return m_largeImage; } } /// /// path of image /// public string Image { get { return m_image; } } /// /// description /// public string Description { get { return m_description; } } /// /// path of assembly /// public string Assembly { get { return m_assembly; } } /// /// class name /// public string ClassName { get { return m_className; } } #endregion # region Methods /// /// Constructor /// public SampleItem() { } /// /// Constructor /// /// category /// display name /// description /// path of large image /// path of image /// path of assembly /// class name public SampleItem(string category, string displayName, string description, string largeImage, string image, string assembly, string className) { m_category = category; m_displayName = displayName; m_description = description; m_largeImage = largeImage; m_image = image; m_assembly = assembly; m_className = className; } #endregion } }