private void ButtonOK_Click(object sender, EventArgs e) { try { mOutputWriter.CheckInput(); mOutputWriter.ComposToSettings(); mOutputWriter.OutputSettings.Save(); DialogResult = DialogResult.OK; } catch (OperationCanceledException) { ShowLogMessage(Common.TRACE_EVENT_TYPE_STATUS, "設定変更を中止しました。"); } catch (Exception oExcep) { ShowLogMessage(TraceEventType.Error, "OK ボタンクリック時エラー:\n" + oExcep.Message); ShowLogMessage(TraceEventType.Verbose, " スタックトレース:\n" + oExcep.StackTrace); } }