From 492f089a6e0ed6725cfc749c4c435595256dfae2 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 22 May 2008 19:40:29 +0000 Subject: [PATCH] Correction to Code for OnItemSelectedChanged Event --- PROMS/Volian.Controls.Library/DisplayTabControl.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplayTabControl.cs b/PROMS/Volian.Controls.Library/DisplayTabControl.cs index 78492a5e..90b2164f 100644 --- a/PROMS/Volian.Controls.Library/DisplayTabControl.cs +++ b/PROMS/Volian.Controls.Library/DisplayTabControl.cs @@ -132,8 +132,16 @@ namespace Volian.Controls.Library /// internal void OnItemSelectedChanged(object sender, ItemSelectedChangedEventArgs args) { - _MyItemInfo = args.MyItemInfo; - _MyStepItem = args.MyStepItem; + if (args != null) + { + _MyItemInfo = args.MyItemInfo; + _MyStepItem = args.MyStepItem; + } + else + { + _MyItemInfo = null; + _MyStepItem = null; + } if (ItemSelectedChanged != null) ItemSelectedChanged(sender, args); } #endregion