/// <summary> /// 静的コンストラクタ。 /// </summary> static MessageService() { #if DEBUG // デザイナから実行時はDBアクセス処理を呼び出さないようにする if ((bool)DesignerProperties.IsInDesignModeProperty.GetMetadata(typeof(DependencyObject)).DefaultValue) { return; } #endif // リアクション一覧データを生成しておく var dao = new ReactionDAO(); var dt = dao.Select(); Reaction.ConvertFrom(dt); }