Beispiel #1
0
        private void BindIgnoreWordsList()
        {
            logger.Debug("Begin Load ignore Words");
            var ignores =
                dbOperator.GetAllIgnoreWords().Select(w => new{ Word = w.Word, CreateTime = w.CreateTime, ButtonText = "移除" }).ToList();

            //dgvUnknownWords.Rows.Clear();
            dgvIgnores.AutoGenerateColumns = false;
            //cbxUnknownList.ClearSelected();
            dgvIgnores.DataSource = ignores;
            //tabPage2.ToolTipText = notknown.ToString();
            //this.toolTip1.SetToolTip(this.tabPage2, "生词:" + notknown.Count.ToString());
            tabPage4.Text = string.Format("忽略词({0})", ignores.Count);
            logger.Debug("Finish Load ignore Words");
        }