예제 #1
0
 public Form1()
 {
     VoiceOX = new VoiceOX();
     InitializeComponent();
     Data = new DuLieuLichSu(ref dataGridView1);
     dataGridView1.Sort(dataGridView1.Columns[0], ListSortDirection.Descending);
     aTimer.Interval    = 100;
     aTimer.Elapsed    += new ElapsedEventHandler(OnTimedEvent);
     btnUpdata.Enabled  = btnDown.Enabled = false;
     this.ActiveControl = textBox1;
 }
예제 #2
0
 public TracNghiem(ref Button btnTN, ref CheckBox AnTB, ref CheckBox TatPA)
 {
     this.btnTN = btnTN;
     this.AnTB  = AnTB;
     this.TatPA = TatPA;
     InitializeComponent();
     timer1.Start();
     VoiceOX                 = new NofitionEnglish.VoiceOX();
     Sound                   = new WindowsMediaPlayer();
     DiemTracNghiem          = new Score(ref label7);
     cbbSelect.SelectedIndex = 0;
     label7.Text             = "Score True/False : " + DiemTracNghiem.ScoreDung.ToString() + "/" + DiemTracNghiem.ScoreSai.ToString();
 }