private void searchToolStripMenuItem_Click(object sender, EventArgs e) { var sc = new System.ComponentModel.Design.ServiceContainer(); sc.AddService(typeof(ISettingsService), new DummySettingsService()); using (var dlg = new Reko.Gui.Windows.Forms.SearchDialog()) { dlg.Services = sc; if (dlg.ShowDialog() == DialogResult.OK) { //string.foo(); } } }
private void searchToolStripMenuItem_Click(object sender, EventArgs e) { var sc = new System.ComponentModel.Design.ServiceContainer(); sc.AddService(typeof(ISettingsService), new DummySettingsService()); using (var dlg = new Reko.Gui.Windows.Forms.SearchDialog()) { dlg.Services = sc; if (dlg.ShowDialog() == DialogResult.OK) { //string.foo(); } } }