Esempio n. 1
0
        /// <summary>
        /// 添加处理器
        /// </summary>
        protected virtual void AddProcess()
        {
            object tbs = Lemon.Deserialize(typeof(ExceptionDefine), Lemon.GetCSFRootDirectory() + @"\SystemException\ExceptionDefine.xml");

            if (tbs != null)
            {
                Lemonade.Frame.Message.IMsgProcess msgp = new AutomaticRecording((ExceptionDefine)tbs);
                Lemon.AddMsgProcess(msgp);
            }
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FrmStatusBox_Shown(object sender, EventArgs e)
 {
     this.perror  = new MsgProcessError(this);
     this.penote  = new MsgProcessNote(this);
     this.pedebug = new MsgProcessDebug(this);
     this.LogList = new List <ProteinLog>();
     this.ToolStripMenuItemRn.Checked = true;
     this.ToolStripMenuItemRe.Checked = true;
     this.ToolStripMenuItemRd.Checked = true;
     Lemon.AddMsgProcess(perror);
     Lemon.AddMsgProcess(penote);
     Lemon.AddMsgProcess(pedebug);
     this.RefCheckData();
     //this.dataGridView1.FirstDisplayedScrollingRowIndex = this.dataGridView1.RowCount;
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void 异常ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.ToolStripMenuItemRe.Checked)
     {
         Lemon.RemoveMsgProcess(perror);
         this.dataGridView1.Rows.Clear();
         this.ToolStripMenuItemRe.Checked = false;
     }
     else
     {
         Lemon.RemoveMsgProcess(perror);
         this.dataGridView1.Rows.Clear();
         Lemon.AddMsgProcess(perror);
         this.ToolStripMenuItemRe.Checked = true;
     }
     RefCheckData();
 }
Esempio n. 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     Lemon.AddMsgProcess(this);
 }
Esempio n. 5
0
 private void button1_Click(object sender, EventArgs e)
 {
     process = new CustomErrorProcess(this);
     Lemon.AddMsgProcess(process);
 }