当前位置: 首页 > news >正文

错误弹窗记录

publicpartialclassErrorForm:Form{privatestaticstringerror_str="系统错误";publicErrorForm(){InitializeComponent();pictureBox1.Image=SystemIcons.Error.ToBitmap();pictureBox1.SizeMode=PictureBoxSizeMode.StretchImage;label1.Text=Error_str;}publicstaticstringError_str{get=>error_str;set=>error_str=value;}privatevoidbutton1_Click(objectsender,EventArgse){this.Close();this.Dispose();}publicvoidUpdateErrorMessage(stringnewMessage){if(label1!=null){label1.Text=newMessage;}}privatevoidbutton2_Click(objectsender,EventArgse){button2.BackColor=Color.White;for(inti=0;i<10;i++)PLC_RUN.set_SYSTEM_info(PLC_DB_info.Err_Reset,false);this.Close();this.Dispose();}}

partial class ErrorForm
{
///
/// Required designer variable.
///
private System.ComponentModel.IContainer components = null;

/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.button2 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.Location = new System.Drawing.Point(347, 12); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(98, 98); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.AutoScroll = true; this.panel1.Controls.Add(this.label1); this.panel1.Location = new System.Drawing.Point(12, 116); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(776, 279); this.panel1.TabIndex = 1; // // button1 // this.button1.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); this.button1.Font = new System.Drawing.Font("宋体", 12F); this.button1.Location = new System.Drawing.Point(263, 401); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(110, 40); this.button1.TabIndex = 2; this.button1.Text = "关 闭"; this.button1.UseVisualStyleBackColor = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("宋体", 13F); this.label1.ForeColor = System.Drawing.Color.Red; this.label1.Location = new System.Drawing.Point(33, 22); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(76, 22); this.label1.TabIndex = 0; this.label1.Text = "label1"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // button2 // this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.button2.Font = new System.Drawing.Font("宋体", 10F); this.button2.ForeColor = System.Drawing.Color.Black; this.button2.Location = new System.Drawing.Point(396, 400); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(110, 40); this.button2.TabIndex = 3; this.button2.Text = "复位错误"; this.button2.UseVisualStyleBackColor = false; this.button2.Click += new System.EventHandler(this.button2_Click); // // ErrorForm // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.panel1); this.Controls.Add(this.pictureBox1); this.ForeColor = System.Drawing.Color.White; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "ErrorForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "ErrorForm"; this.TopMost = true; ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button button1; private Label label1; private Button button2; }

http://www.jsqmd.com/news/512871/

相关文章:

  • 51单片机PID算法控制无刷直流电机Proteus仿真探索
  • Docker 环境下 Redis Lua 脚本部署与执行
  • 2026年厦门二手房装修公司推荐:厦门六区施工案例详解与环保材料选用指南 - 品牌推荐
  • 支付宝立减金别过期才想起,精选变现完整流程 - 淘淘收小程序
  • 避坑指南:Dify智能文档助手开发中常见的5个文件处理问题及解决方案
  • Windows家庭版升级专业版全攻略
  • gorm 中的Updates Update, Save,Create , UpdateColumn 区别与联系
  • AI时代,你的全球业务需要一张“会思考”的网络
  • Unity网络基础UDP客户端
  • Cortex-M3 异常处理机制的设计哲学
  • 25大数据 3-1 字符串函数
  • 102类农业害虫图像识别数据集分享(适用于YOLO系列深度学习分类检测任务)
  • 2026年厦门二手房装修公司推荐:局部改造工期短且环保材料靠谱品牌分析 - 品牌推荐
  • 从入门到精通:Kafka核心原理与实战避坑指南
  • SEO_从零开始学习SEO的完整步骤与实战方法
  • 制作微PE-Win系统盘
  • 永辉超市购物卡回收高效1分钟变现全教程 - 淘淘收小程序
  • 软件库带后台源码 v3.1
  • 基于单片机的药品分拣系统
  • 收藏!24家大模型面试实战经验(9个offer),小白/程序员入门必看
  • 使用yolov26实现目标检测
  • 2026年厦门二手房装修公司推荐:局部改造与全屋整装口碑好公司及真实案例解析 - 品牌推荐
  • 2025-2026年厦门二手房装修公司推荐:全屋整装高性价比品牌与用户真实反馈 - 品牌推荐
  • 2026年充电桩加盟品牌榜单:城市公共场站投资靠谱选择与运营避坑指南 - 品牌推荐
  • 新能源汽车车载双向OBC,PFC,LLC,V2G 双向充电桩MATLAB仿真模型及应用分析
  • java基于微信小程序的物流仓储管理系统 可视化
  • PunchoutLevel的product、shelf、Aisle的是什么
  • 京东e卡回收安全教程来袭,价格与流程全知晓 - 淘淘收小程序
  • 6.Adobe Animate遮罩动画
  • 厦门二手房装修公司如何选不踩雷?2026年靠谱推荐及免费量房设计服务 - 品牌推荐