public override bool IsRepresentingSame(TreeNodeTag theTreeNodeTag) { bool isRepresentingSame = false; EmulatorTag theEmulatorTag = theTreeNodeTag as EmulatorTag; if (theEmulatorTag != null) { if ((theEmulatorTag._Session == _Session) && (theEmulatorTag._EmulatorType == _EmulatorType)) { isRepresentingSame = true; } } return(isRepresentingSame); }
public void UpdateEmulatorNode(TreeNode theEmulatorTreeNode, Dvtk.Sessions.Session theSession, ArrayList theResultsFiles, EmulatorTag.EmulatorType theEmulatorType, bool isExecuting) { // Set the text on this session tree node. switch(theEmulatorType) { case EmulatorTag.EmulatorType.PRINT_SCP: { theEmulatorTreeNode.Text = "Print SCP Emulator"; } break; case EmulatorTag.EmulatorType.STORAGE_SCP: { theEmulatorTreeNode.Text = "Storage SCP Emulator"; } break; case EmulatorTag.EmulatorType.STORAGE_SCU: { theEmulatorTreeNode.Text = "Storage SCU Emulator"; } break; } if (isExecuting) { theEmulatorTreeNode.Text += " (executing)"; } // Set the tag for this session tree node. EmulatorTag theEmulatorTag = new EmulatorTag(theSession, theEmulatorType); theEmulatorTreeNode.Tag = theEmulatorTag; // Remove the old tree nodes that may be present under this session tree node. theEmulatorTreeNode.Nodes.Clear(); if (!isExecuting) { foreach (string theResultsFile in theResultsFiles) { TreeNode theTreeNode = new TreeNode(); theEmulatorTreeNode.Nodes.Add(theTreeNode); UpdateResultsFileNode(theTreeNode, theSession, theResultsFile); } } }
public static string GetBaseNameForEmulator(EmulatorTag.EmulatorType theEmulatorType) { string theBaseName = ""; switch(theEmulatorType) { case EmulatorTag.EmulatorType.PRINT_SCP: theBaseName = "Pr_Scp_Em"; break; case EmulatorTag.EmulatorType.STORAGE_SCP: theBaseName = "St_Scp_Em"; break; case EmulatorTag.EmulatorType.STORAGE_SCU: theBaseName = "St_Scu_Em"; break; default: // Not implemented. Debug.Assert(false); break; } return(theBaseName); }
public static string GetSummaryNameForEmulator(Dvtk.Sessions.Session theSession, EmulatorTag.EmulatorType theEmulatorType) { return("Summary_" + GetExpandedNameForEmulator(theSession, theEmulatorType)); }
public static string GetExpandedNameForEmulator(Dvtk.Sessions.Session theSession, EmulatorTag.EmulatorType theEmulatorType) { return(GetExpandedName(theSession, GetBaseNameForEmulator(theEmulatorType))); }
public static string GetDetailNameForEmulator(Dvtk.Sessions.Session theSession, EmulatorTag.EmulatorType theEmulatorType) { return("Detail_" + GetExpandedNameForEmulator(theSession, theEmulatorType)); }