设计人员无法在第32行处理代码

此错误在我的项目中屡次发生,我想出一个新的错误,但我目前正在处理的该项目也存在相同的问题,但我想节省很多精力。 我在MainWindow.cs [design]中遇到错误,并显示此错误

“设计人员无法在第32行处理代码:BunifuAnimatorNS.Animation animation33 = new BunifuAnimatorNS.Animation();方法'InitializeComponent'中的代码是由设计人员生成的,不应手动对其进行修改。请删除所有更改然后尝试再次打开设计师。”  请帮助我。

我是新开发人员,我不知道要尝试什么

private void InitializeComponent()
    {
        this.components = new System.ComponentModel.Container();
        BunifuAnimatorNS.Animation animation33 = new BunifuAnimatorNS.Animation();
        AnimatorNS.Animation animation34 = new AnimatorNS.Animation();
        AnimatorNS.Animation animation35 = new AnimatorNS.Animation();
        AnimatorNS.Animation animation32 = new AnimatorNS.Animation();
        AnimatorNS.Animation animation31 = new AnimatorNS.Animation();
        System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
        this.bunifuElipse1 = new Bunifu.Framework.UI.BunifuElipse(this.components);
        this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
        this.bunifuImageButton3 = new Bunifu.Framework.UI.BunifuImageButton();
        this.panel1 = new System.Windows.Forms.Panel();
        this.panel3 = new System.Windows.Forms.Panel();
        this.bunifuImageButton4 = new Bunifu.Framework.UI.BunifuImageButton();
        this.label3 = new System.Windows.Forms.Label();
        this.panel2 = new System.Windows.Forms.Panel();
        this.logo1 = new Bunifu.Framework.UI.BunifuImageButton();
        this.Btnmnu = new Bunifu.Framework.UI.BunifuflatButton();
        this.logoLabel = new System.Windows.Forms.Label();
        this.bunifuflatButton5 = new Bunifu.Framework.UI.BunifuflatButton();
        this.bunifuflatButton4 = new Bunifu.Framework.UI.BunifuflatButton();
        this.Logo = new Bunifu.Framework.UI.BunifuImageButton();
        this.bunifuflatButton3 = new Bunifu.Framework.UI.BunifuflatButton();
        this.bunifuflatButton2 = new Bunifu.Framework.UI.BunifuflatButton();
        this.bunifuflatButton1 = new Bunifu.Framework.UI.BunifuflatButton();
        this.label2 = new System.Windows.Forms.Label();
        this.TranslationPanel = new System.Windows.Forms.Panel();
        this.bunifuMetroTextbox2 = new Bunifu.Framework.UI.BunifuMetroTextbox();
        this.bunifuMetroTextbox1 = new Bunifu.Framework.UI.BunifuMetroTextbox();

Bunifu每行显示错误

Errors in the code of Designer

.cs Design error

tym520 回答:设计人员无法在第32行处理代码

谢谢大家的时间,我在MainWindow.Designer.cs中注释了几行代码来解决了这个问题

我要做的就是通过删除这些行

  this.logoAnimatior.AnimationType = BunifuAnimatorNS.AnimationType.HorizSlideAndRotate;
        this.logoAnimatior.Cursor = null;
        animation33.AnimateOnlyDifferences = true;
        animation33.BlindCoeff = ((System.Drawing.PointF)(resources.GetObject("animation33.BlindCoeff")));
        animation33.LeafCoeff = 0F;
        animation33.MaxTime = 1F;
        animation33.MinTime = 0F;
        animation33.MosaicCoeff = ((System.Drawing.PointF)(resources.GetObject("animation33.MosaicCoeff")));
        animation33.MosaicShift = ((System.Drawing.PointF)(resources.GetObject("animation33.MosaicShift")));
        animation33.MosaicSize = 0;
        animation33.Padding = new System.Windows.Forms.Padding(50);
        animation33.RotateCoeff = 0.3F;
        animation33.RotateLimit = 0.2F;
        animation33.ScaleCoeff = ((System.Drawing.PointF)(resources.GetObject("animation33.ScaleCoeff")));
        animation33.SlideCoeff = ((System.Drawing.PointF)(resources.GetObject("animation33.SlideCoeff")));
        animation33.TimeCoeff = 0F;
        animation33.TransparencyCoeff = 0F;
        this.logoAnimatior.DefaultAnimation = animation33;

我不知道它如何工作,但再次感谢您的宝贵时间。

本文链接:https://www.f2er.com/3121200.html

大家都在问