private void bbiAbout_ItemClick(object sender, ItemClickEventArgs e) { var shell = ApplicationService.Current.MainForm as IShellBase; SAF.Framework.Component.AboutBox about = new SAF.Framework.Component.AboutBox(shell == null ? null : shell.SubProductInfos); about.Owner = this; about.ShowDialog(); }
private void lblAboutBox_Click(object sender, EventArgs e) { var shell = ApplicationService.Current.MainForm as IShellBase; AboutBox about = new AboutBox(shell == null ? null : shell.SubProductInfos); about.Owner = this.FindForm(); about.ShowDialog(); }