예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }