コード例 #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);
        }
コード例 #2
0
ファイル: SourceViewerForm.cs プロジェクト: Orvid/Cosmos
 // 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;
 }