You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.7 KiB
C#
71 lines
1.7 KiB
C#
using NLog;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace POSV
|
|
{
|
|
public partial class ExceptionForm : BusinessForm
|
|
{
|
|
public ExceptionForm()
|
|
{
|
|
InitializeComponent();
|
|
Logger logger =
|
|
this.LOGGER = LogManager.GetLogger(GetType().FullName);
|
|
}
|
|
|
|
|
|
|
|
private readonly Logger LOGGER = null;
|
|
|
|
/// <summary>
|
|
/// 关键信息
|
|
/// </summary>
|
|
public string SetMessage
|
|
{
|
|
set { this.lblErrorMessage.Text = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 报错说明
|
|
/// </summary>
|
|
public string SetErrorMessage
|
|
{
|
|
set { this.lblErrordetail.Text = value; }
|
|
}
|
|
|
|
private void SetLogger(string Log)
|
|
{
|
|
LOGGER.Info(" \t\n\t\n\t\n");
|
|
LOGGER.Info("---------------异常窗口处理------------------");
|
|
LOGGER.Info(Log);
|
|
LOGGER.Info("---------------------------------------------");
|
|
LOGGER.Info(" \t\n\t\n\t\n");
|
|
}
|
|
|
|
/// <summary>
|
|
/// 关闭事件
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void pictureBox1_Click(object sender, EventArgs e)
|
|
{
|
|
SetLogger("点击关闭窗口");
|
|
this.Dispose();
|
|
this.Close();
|
|
}
|
|
|
|
private void label3_Click(object sender, EventArgs e)
|
|
{
|
|
Clipboard.SetDataObject(this.lblErrordetail.Text);
|
|
ShowToastNotify(this, "复制成功");
|
|
}
|
|
|
|
}
|
|
}
|