[Mmclibrary-cvs] mmclibrary/MMCLib2/Nodes SortListNode.cs,1.4,1.5
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-19 23:29:40
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10490 Modified Files: SortListNode.cs Log Message: Changed a lot of protected variables that where storage for properties to private Index: SortListNode.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Nodes/SortListNode.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SortListNode.cs 1 Sep 2004 13:02:17 -0000 1.4 --- SortListNode.cs 19 Jan 2005 23:29:31 -0000 1.5 *************** *** 26,39 **** /// A cached reference to the MMC console /// </summary> ! protected IConsole2 m_Console = null; /// <summary> /// Underlying template for the listview control /// </summary> ! protected SortedList m_List = null; /// <summary> /// Underlying template for the listview control /// </summary> ! protected ArrayList m_HeaderInfo = null; #endregion --- 26,39 ---- /// A cached reference to the MMC console /// </summary> ! private IConsole2 _console = null; /// <summary> /// Underlying template for the listview control /// </summary> ! private SortedList _list = null; /// <summary> /// Underlying template for the listview control /// </summary> ! private ArrayList _headerInfo = null; #endregion *************** *** 49,53 **** public IHeaderCtrl2 HeaderCtrl { ! get { return (IHeaderCtrl2)m_Console; } } --- 49,53 ---- public IHeaderCtrl2 HeaderCtrl { ! get { return (IHeaderCtrl2)_console; } } *************** *** 58,62 **** public IResultData ResultData { ! get { return (IResultData)m_Console; } } --- 58,62 ---- public IResultData ResultData { ! get { return (IResultData)_console; } } *************** *** 66,77 **** public SortedList DataList { ! get{ return m_List; } ! set{ m_List = value; } } public ArrayList HeaderInfo { ! get{ return m_HeaderInfo; } ! set{ m_HeaderInfo = value; } } #endregion --- 66,77 ---- public SortedList DataList { ! get{ return _list; } ! set{ _list = value; } } public ArrayList HeaderInfo { ! get{ return _headerInfo; } ! set{ _headerInfo = value; } } #endregion *************** *** 108,112 **** public override void OnResultShow() { ! m_Console = m_Snapin.ResultViewConsole; // setup the header for the columns we want to show --- 108,112 ---- public override void OnResultShow() { ! _console = Snapin.ResultViewConsole; // setup the header for the columns we want to show *************** *** 130,137 **** public virtual void OnShowHeader( IHeaderCtrl2 header ){ try{ ! if( m_HeaderInfo != null) // Let's put in the column titles ! for( int iIndex = 0; iIndex < m_HeaderInfo.Count; iIndex++ ){ ! string name = m_HeaderInfo[ iIndex ] as string; int nWidth = (int)ColumnHeaderWidth.AUTO_WIDTH; header.InsertColumn( iIndex, name, (int)ColumnHeaderFormat.LEFT, nWidth ); --- 130,137 ---- public virtual void OnShowHeader( IHeaderCtrl2 header ){ try{ ! if( _headerInfo != null) // Let's put in the column titles ! for( int iIndex = 0; iIndex < _headerInfo.Count; iIndex++ ){ ! string name = _headerInfo[ iIndex ] as string; int nWidth = (int)ColumnHeaderWidth.AUTO_WIDTH; header.InsertColumn( iIndex, name, (int)ColumnHeaderFormat.LEFT, nWidth ); *************** *** 156,162 **** /// </summary> /// <param name="ResultData"></param> ! public virtual void OnShowData( IResultData ResultData ){ ! if( m_List != null ){ ! for( int iIndex = 0; iIndex < m_List.Count; iIndex++ ){ InsertItem( iIndex + 1 ); } --- 156,162 ---- /// </summary> /// <param name="ResultData"></param> ! public virtual void OnShowData( IResultData resultData ){ ! if( _list != null ){ ! for( int iIndex = 0; iIndex < _list.Count; iIndex++ ){ InsertItem( iIndex + 1 ); } *************** *** 236,240 **** /// <param name="ResultDataItem"></param> /// <param name="pItemID"></param> ! public virtual void GetItem( out RESULTDATAITEM ResultDataItem, uint pItemID ){ RESULTDATAITEM rdi = new RESULTDATAITEM(); --- 236,240 ---- /// <param name="ResultDataItem"></param> /// <param name="pItemID"></param> ! public virtual void GetItem( out RESULTDATAITEM resultDataItem, uint pItemID ){ RESULTDATAITEM rdi = new RESULTDATAITEM(); *************** *** 245,249 **** ResultData.GetItem( ref rdi ); ! ResultDataItem = rdi; } /// <summary> --- 245,249 ---- ResultData.GetItem( ref rdi ); ! resultDataItem = rdi; } /// <summary> *************** *** 283,287 **** /// <param name="nRow"></param> public virtual int GetItemLParam( int nRow ){ ! return m_iCookie | ( nRow << 16 ); } #endregion --- 283,287 ---- /// <param name="nRow"></param> public virtual int GetItemLParam( int nRow ){ ! return Cookie | ( nRow << 16 ); } #endregion |