public static void ShowForm(IWin32Window owner, ITutorial tutorial) { AreaForm form = new AreaForm(tutorial); form.ShowDialog(owner); form.DoDispose(); tutorial.Disconnect(); }
private void ExamplesView_DoubleClick(object sender, EventArgs e) { try { if (null != SelectedTutorial) { AreaForm.ShowForm(this, SelectedTutorial); } } catch (Exception exception) { ErrorForm.Show(this, null, exception.Message, exception); } }