예제 #1
0
 private void ThreadFunction()
 {
     if (this.MPB.InvokeRequired)
     {
         NewDelegate newdel = new NewDelegate(ThreadFunction);
         this.Invoke(newdel);
         //Console.WriteLine("ThreadFunction");
     }
     else
     {
         ShowListBox();
         MPB.Hide();
         BtnGrasp.Show();
         BtnSelectAll.Show();
         BtnUngrasp.Show();
         //Console.WriteLine("ShowTreeView");
     }
 }
예제 #2
0
        //todo:添加到单词本

        public ArticleStudy()
        {
            InitializeComponent();
            MPB.Hide();
            BtnGrasp.Hide();
            BtnSelectAll.Hide();
            BtnUngrasp.Hide();
            CheckForIllegalCrossThreadCalls = false;
            formWidth   = 800;
            formHeight  = 426;
            formWidthN  = this.Width;
            formHeightN = this.Height;
            graspList   = StatisticsHelper.GetWordLog(StatisticsHelper.GetWordLogPath(DateTime.Now), StatisticsHelper.WordLogType.grasp);
            ungraspList = new List <string>();
            setTag(this);//调用方法
            dictList = DictHelper.GenerateDictList();
            dictDict = DictHelper.ReadDictDict();
            CbxDictionary.DataSource = dictList;
            MoveControl moveControl = new MoveControl(Tbx);
        }