private void buttonStartApplication_Click(object sender, EventArgs e) { try { DisposeCurrentOpenOfficeApplication(); SelectOfficeAppControl selectBox = new SelectOfficeAppControl(Host.CurrentLanguageID, new SelectOfficeEventHandler(Run)); this.Controls.Add(selectBox); selectBox.Dock = DockStyle.Fill; selectBox.BringToFront(); selectBox.Show(); } catch (Exception exception) { Forms.ErrorForm.ShowError(exception, ErrorCategory.NonCritical, Host.CurrentLanguageID); } }
private void buttonStartApplication_Click(object sender, EventArgs e) { try { DisposeCurrentOpenOfficeApplication(); SelectOfficeAppControl selectBox = new SelectOfficeAppControl(Host.CurrentLanguageID, new SelectOfficeEventHandler(Run)); this.Controls.Add(selectBox); selectBox.Dock = DockStyle.Fill; selectBox.BringToFront(); selectBox.Show(); } catch (Exception exception) { Forms.ErrorForm.ShowError(exception,ErrorCategory.NonCritical, Host.CurrentLanguageID); } }