Shutoff AutoExpand for PMS-810
This commit is contained in:
		@@ -1731,7 +1731,10 @@ namespace Volian.Controls.Library
 | 
			
		||||
			if (CanExpand && Expanded == false)// TODO: May need to do some additional checking for subsections
 | 
			
		||||
			{
 | 
			
		||||
				//vlnStackTrace.ShowStack(">AutoExpand ID {0} - Can {1} Expanded {2}", _MyItem.ItemID, CanExpand, Expanded);
 | 
			
		||||
				Expand((_ContentType >= 20000) || MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format);
 | 
			
		||||
				if(MyStepPanel.AutoExpand)
 | 
			
		||||
					Expand((_ContentType >= 20000) || MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format);
 | 
			
		||||
				else
 | 
			
		||||
					Expand(false);
 | 
			
		||||
				//Console.WriteLine("<AutoExpand ID {0} - Can {1} Expanded {2}",_MyItem.ItemID, CanExpand, Expanded);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
@@ -855,7 +855,10 @@ namespace Volian.Controls.Library
 | 
			
		||||
					//OLD: _MyvlnExpander.Attachment = (itemInfo.MyContent.ContentPartCount == 0);
 | 
			
		||||
					break;
 | 
			
		||||
				case 2: // High level steps with children can expand
 | 
			
		||||
					CanExpand = itemInfo.IsHigh && !MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format && itemInfo.HasChildren; // TemporaryFormat.IsHigh(item); ;
 | 
			
		||||
					if(MyStepPanel.AutoExpand)
 | 
			
		||||
						CanExpand = itemInfo.IsHigh && !MyItemInfo.ActiveFormat.MyStepSectionLayoutData.Dev_Format && itemInfo.HasChildren; // TemporaryFormat.IsHigh(item); ;
 | 
			
		||||
					else
 | 
			
		||||
						CanExpand = true;
 | 
			
		||||
					break;
 | 
			
		||||
				default://Procedures cannot expand, because they automatically expand
 | 
			
		||||
					CanExpand = false;
 | 
			
		||||
 
 | 
			
		||||
@@ -354,6 +354,14 @@ namespace Volian.Controls.Library
 | 
			
		||||
				//// TIMING: DisplayItem.TimeIt("pMyItem End");
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		public bool AutoExpand
 | 
			
		||||
		{
 | 
			
		||||
			get
 | 
			
		||||
			{
 | 
			
		||||
				// This is temporary to get the code working for this particular procedure
 | 
			
		||||
				return MyProcedureItemInfo.DisplayNumber != "PMS-810";
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		public void Reset()
 | 
			
		||||
		{
 | 
			
		||||
			ItemInfo parent = SelectedItemInfo.ActiveParent as ItemInfo;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user