Exemplo n.º 1
0
        // There's one SourceViewerForm instance for each source-file
        // Get the instance for the new source file.
        // Called on UI thread.
        public static SourceViewerBaseForm GetSourceFile(MainForm parent, MDbgFunction function)
        {
            SourceViewerBaseForm source = (SourceViewerBaseForm)m_sourceList[function];

            if (source == null)
            {
                source = new VirtualSourceViewerForm(parent, function);
                AddSourceViewer(source);
            }
            m_ActiveSourceFile = source;
            return(source);
        }
Exemplo n.º 2
0
 // There's one SourceViewerForm instance for each source-file
 // Get the instance for the new source file.
 // Called on UI thread.
 public static SourceViewerBaseForm GetSourceFile(MainForm parent, MDbgFunction function)
 {            
     SourceViewerBaseForm source = (SourceViewerBaseForm)m_sourceList[function];
     if (source == null)
     {
         source = new VirtualSourceViewerForm(parent, function);
         AddSourceViewer(source);
     }
     m_ActiveSourceFile = source;
     return source;
 }