public MemTracerForm() { InitializeComponent(); m_delegateAddModuleInfo = new DelegateAddModuleInfo(this.AddModuleInfo); m_delegateOnDisconnect = new DelegateOnDisconnect(this.OnDisconnect); m_delegateAddSnapshot = new DelegateAddSnapshot(this.AddSnapshot); snapshotList1.OnCompareSnapshots = new DelegateCompareSnapshots(this.CompareSnapshots); snapshotList1.OnOverlapSnapshots = new DelegateOverlapSnapshots(this.OverlapSnapshots); snapshotList1.SetMainForm(this); snapshotInfo1.Init("Global"); m_graphLineHandle = usageGraph.AddLine(0, Color.LightGreen); ms_MainForm = this; LoadConfig(kConfigFileName); StackTracer = new DiaStackTracer(); EnableTabPage(tabPageFrameSnapshot, IsFrameAnalysisEnabled()); EnableTabPage(tabPageFrameOps, IsFrameAnalysisEnabled()); }
public void SetMainForm(MemTracerForm frm) { m_mainForm = frm; }