Ejemplo n.º 1
0
        /// <summary>
        /// 加载数据
        /// </summary>
        protected virtual void LoadData()
        {
            this.LogList.Clear();
            DalHandler dh   = new DalHandler();
            ProteinLog plog = new ProteinLog();

            this.LogList = dh.QueryAll <ProteinLog>(plog);
            this.LogList.Sort(SortOrderTime);
            this.fToolStripMenuItem.Enabled  = true;
            this.lToolStripMenuItem.Enabled  = true;
            this.nToolStripMenuItem1.Enabled = true;
            this.eToolStripMenuItem.Enabled  = true;
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="LogA"></param>
 /// <param name="LogB"></param>
 /// <returns></returns>
 protected virtual int SortOrderTime(ProteinLog LogA, ProteinLog LogB)
 {
     return(LogA.LOGTIME.CompareTo(LogB.LOGTIME));
 }