[Mmclibrary-cvs] mmclibrary/MMCLib2/Core About.cs,1.7,1.8
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-19 22:12:18
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22352 Modified Files: About.cs Log Message: Method parameter names should use a camel case for their names Changed a lot of protected variables that where storage for properties to private Index: About.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/About.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** About.cs 12 Nov 2004 16:20:36 -0000 1.7 --- About.cs 19 Jan 2005 22:12:07 -0000 1.8 *************** *** 21,24 **** --- 21,30 ---- private ImageList staticFolderIcons = new ImageList(); + /////////////////////////////////////////////////////////////////////// + // + // private vars + // + #region + /// <summary> /// This following indices are used to access the icons in the staticFolderIcons list. *************** *** 29,80 **** private const int largeImageIndex = 3; ! /////////////////////////////////////////////////////////////////////// ! // ! // Members ! // ! #region ! /// <summary> ! /// A long description of the snapin ! /// </summary> ! protected string m_Description; ! ! /// <summary> ! /// the organization providing the snapin ! /// </summary> ! protected string m_Provider; ! ! /// <summary> ! /// the version of the snapin: TBD: tie this to the assembly version? ! /// </summary> ! protected string m_Version; ! ! /// <summary> ! /// embedded image name for main icon ! /// </summary> ! protected string m_MainIconName; ! ! /// <summary> ! /// embedded image name for main icon ! /// </summary> ! protected string m_SmallOpenName; ! ! /// <summary> ! /// embedded image name for Small Open image ! /// </summary> ! protected string m_SmallClosedName; ! ! /// <summary> ! /// embedded image name for small closed image ! /// </summary> ! protected string m_LargeName; ! /// <summary> ! /// RGB color value describing the transparent color ! /// The color mask is important when the color depth of the screen is not 32. ! /// In this case, the unmanaged bitmaps must be translated to the color depth ! /// of the screen and the color mask should specify Color.Black ! /// </summary> ! protected Color m_Mask; ! #endregion /////////////////////////////////////////////////////////////////////// --- 35,48 ---- private const int largeImageIndex = 3; ! private string _description; ! private string _provider; ! private string _version; ! private string _mainIconName; ! private string _smallOpenName; ! private string _smallClosedName; ! private string _largeImageName; ! private Color _mask; ! #endregion /////////////////////////////////////////////////////////////////////// *************** *** 83,149 **** // #region ! /// <summary> ! /// Get or set the description ! /// </summary> public string Description { ! get { return m_Description; } ! set { m_Description = value; } } ! /// <summary> ! /// Get or set the provider ! /// </summary> public string Provider { ! get { return m_Provider; } ! set { m_Provider = value; } } ! /// <summary> ! /// Get or set the version ! /// </summary> public string Version { ! get { return m_Version; } ! set { m_Version = value; } } ! /// <summary> ! /// Get or set the main icon name ! /// </summary> public string MainIconName { ! get { return m_MainIconName; } set { ! m_MainIconName = value; ! staticFolderIcons.Replace(mainIconIndex, m_MainIconName); } } ! /// <summary> ! /// Get or set the small open image name ! /// </summary> public string SmallOpenImageName { ! get { return m_SmallOpenName; } set { ! m_SmallOpenName = value; ! staticFolderIcons.Replace(smallOpenImageIndex, m_SmallOpenName); } } ! /// <summary> ! /// Get or set the small closed image name ! /// </summary> public string SmallClosedImageName { ! get { return m_SmallClosedName; } set { ! m_SmallClosedName = value; ! staticFolderIcons.Replace(smallClosedImageIndex, m_SmallClosedName); } } --- 51,117 ---- // #region ! /// <summary> ! /// Get or set a long description of the snapin ! /// </summary> public string Description { ! get { return _description; } ! set { _description = value; } } ! /// <summary> ! /// Get or set the organization providing the snapin ! /// </summary> public string Provider { ! get { return _provider; } ! set { _provider = value; } } ! /// <summary> ! /// Get or set the version of the snapin: TBD: tie this to the assembly version? ! /// </summary> public string Version { ! get { return _version; } ! set { _version = value; } } ! /// <summary> ! /// Get or set embedded image name for main icon ! /// </summary> public string MainIconName { ! get { return _mainIconName; } set { ! _mainIconName = value; ! staticFolderIcons.Replace(mainIconIndex, _mainIconName); } } ! /// <summary> ! /// Get or set embedded image name for Small Open image ! /// </summary> public string SmallOpenImageName { ! get { return _smallOpenName; } set { ! _smallOpenName = value; ! staticFolderIcons.Replace(smallOpenImageIndex, _smallOpenName); } } ! /// <summary> ! /// Get or set embedded image name for small closed image ! /// </summary> public string SmallClosedImageName { ! get { return _smallClosedName; } set { ! _smallClosedName = value; ! staticFolderIcons.Replace(smallClosedImageIndex, _smallClosedName); } } *************** *** 154,172 **** public string LargeImageName { ! get { return m_LargeName; } set { ! m_LargeName = value; ! staticFolderIcons.Replace(largeImageIndex, m_LargeName); } } ! /// <summary> ! /// Get or set the image color mask ! /// </summary> public Color ImageColorMask { ! get { return m_Mask; } ! set { m_Mask = value; } } #endregion --- 122,143 ---- public string LargeImageName { ! get { return _largeImageName; } set { ! _largeImageName = value; ! staticFolderIcons.Replace(largeImageIndex, _largeImageName); } } ! /// <summary> ! /// RGB color value describing the transparent color ! /// The color mask is important when the color depth of the screen is not 32. ! /// In this case, the unmanaged bitmaps must be translated to the color depth ! /// of the screen and the color mask should specify Color.Black ! /// </summary> public Color ImageColorMask { ! get { return _mask; } ! set { _mask = value; } } #endregion *************** *** 189,197 **** SnapinInAttribute snapinAttrib = (SnapinInAttribute)attrs[0]; ! m_Provider = GetProviderFromAtr(snapinAttrib); ! m_Version = GetVersionFromAtr(snapinAttrib); } ! m_Mask = Color.Black; InsertStaticFolderIcons(); --- 160,168 ---- SnapinInAttribute snapinAttrib = (SnapinInAttribute)attrs[0]; ! Provider = GetProviderFromAtr(snapinAttrib); ! Version = GetVersionFromAtr(snapinAttrib); } ! ImageColorMask = Color.Black; InsertStaticFolderIcons(); *************** *** 287,291 **** hSmallImageOpen = staticFolderIcons.GetBitmapHandle(smallOpenImageIndex); hLargeImage = staticFolderIcons.GetBitmapHandle(largeImageIndex); ! cMask = (uint)m_Mask.ToArgb(); } #endregion --- 258,262 ---- hSmallImageOpen = staticFolderIcons.GetBitmapHandle(smallOpenImageIndex); hLargeImage = staticFolderIcons.GetBitmapHandle(largeImageIndex); ! cMask = (uint)ImageColorMask.ToArgb(); } #endregion |