public void TearDown() { if (dlg != null) { dlg.Dispose(); } dlg = null; }
private void symbolSourcesToolStripMenuItem_Click(object sender, EventArgs e) { var sc = new ServiceContainer(); var cfgSvc = new FakeConfigurationService(); var fsSvc = new FileSystemServiceImpl(); var uiSvc = new FakeDecompilerShellUiService(this); sc.AddService <IConfigurationService>(cfgSvc); sc.AddService <IFileSystemService>(fsSvc); sc.AddService <IDecompilerShellUiService>(uiSvc); var dlg = new SymbolSourceDialog(); dlg.Services = sc; dlg.ShowDialog(this); }
private void When_CreateDlg() { dlg = new SymbolSourceDialog(); dlg.Services = sc; dlg.Show(); }