private void buttonInfo_Click(object sender, EventArgs e) { try { InfoControl infoBox = new InfoControl("OfficeCompatibility.Info" + _currentLanguageID.ToString() + ".rtf", true); this.Controls.Add(infoBox); infoBox.BringToFront(); infoBox.Show(); } catch (Exception exception) { ErrorForm errorForm = new ErrorForm(exception, ErrorCategory.NonCritical, _currentLanguageID); errorForm.ShowDialog(this); } }
private void buttonInfo_Click(object sender, EventArgs e) { try { Stream stream = InnerInstance.GetHelpText(InnerInstance.Host.CurrentLanguageID); InfoControl infoBox = new InfoControl(stream); this.Controls.Add(infoBox); infoBox.BringToFront(); infoBox.Show(); stream.Close(); stream.Dispose(); } catch (Exception exception) { Forms.ErrorForm.ShowError(this, exception, ErrorCategory.NonCritical, InnerInstance.Host.CurrentLanguageID); } }
private void buttonInfo_Click(object sender, EventArgs e) { try { InfoControl infoBox = new InfoControl("ApplicationObserver.Info" + _currentLanguageID.ToString() + ".rtf", true); this.Controls.Add(infoBox); infoBox.BringToFront(); infoBox.Show(); } catch (Exception exception) { ErrorForm errorForm = new ErrorForm(exception, ErrorCategory.NonCritical, _currentLanguageID); errorForm.ShowDialog(this); } }