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;
///
/// 关键信息
///
public string SetMessage
{
set { this.lblErrorMessage.Text = value; }
}
///
/// 报错说明
///
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");
}
///
/// 关闭事件
///
///
///
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, "复制成功");
}
}
}