/// <summary> /// Display the about box when menu item is selected /// </summary> private void aboutMenuItem_Click(object sender, System.EventArgs e) { using( AboutBox aboutBox = new AboutBox() ) { this.Site.Container.Add( aboutBox ); aboutBox.ShowDialog(); } }
/// <summary> /// Display the about box when menu item is selected /// </summary> private void aboutMenuItem_Click(object sender, System.EventArgs e) { /*2013-1-12:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/ if (this.Site == null) return; if (this.Site.Container == null) return; /*2013-1-12:NUnit.Gui.ArxNet.Tests.NUnitFormArxNetTests.ShowModalDialog���Լ�*/ using( AboutBox aboutBox = new AboutBox() ) { this.Site.Container.Add( aboutBox ); aboutBox.ShowDialog(); } }