在.net中设置debug模式预设代码

 #region DEBUG
#if DEBUG
                this.WorkOrgID.Value = "4DC4507E-434D-4EEB-967E-1E5CC28AA0C1";
                this.WorkOrgName.Text = "公司";
                this.ForemanUserID.Value = "7493A554-C3C8-4B21-8D31-82715C5F81F8";
                this.ForemanUserName.Text = "";
                this.ForemanPhoneNo.Text = "88889999";
                this.RegulatoryUserID.Value = "4F912F3B-D0B0-4E33-9ECD-2E66795E6FDD";
                this.RegulatoryUserName.Text = "";
                this.RegulatoryPhoneNo.Text = "86001019";
                this.SafeGuard.Text = "防护措施";
                this.WorkContent.Text = "内容测试";
                this.PlanNote.Text = "注意事项测试";
#endif
                #endregion
原文地址:https://www.cnblogs.com/renzaijianghu/p/6170614.html