Exemplo n.º 1
0
        private Timer _timer = new Timer(); //計時器

        #endregion Fields

        #region Constructors

        //建構元
        public VocabularyTestView(VocabularyPresentationModel presentationModel)
        {
            this._presentationMode = presentationModel;
            _timer.Interval = MILLISECONDS_PER_SECOND; //每1000毫秒觸發一次事件
            _timer.Tick += TickEventHandler;//加入事件
            InitializeComponent(); //初始化
            LoadAllElement(); //載入各項元素
            Initialize();//初始化
        }
Exemplo n.º 2
0
 public VocabularyTestView(VocabularyPresentationModel presentationModel)//建構元
 {
     this._presentationMode = presentationModel;
     _timer.Interval        = MILLISECONDS_PER_SECOND; //每1000毫秒觸發一次事件
     _timer.Tick           += TickEventHandler;        //加入事件
     InitializeComponent();                            //初始化
     LoadAllElement();                                 //載入各項元素
     Initialize();                                     //初始化
 }