デザイン時に処理を実行させない C#
#if DEBUG
if (this.DesignMode) { return; }
if (System.AppDomain.CurrentDomain.FriendlyName == "DefaultDomain") { return; }
#endif
#if DEBUG
if (this.DesignMode) { return; }
if (System.AppDomain.CurrentDomain.FriendlyName == "DefaultDomain") { return; }
#endif