Beispiel #1
0
 public frmRecords()
 {
     InitializeComponent();
     UpRecordManager.GetInstance().Update(dataGridView);
     UpWorker.GetInstance().ListChanged += FrmMain_ListChanged;
     ChangeBtnIcon();
 }
Beispiel #2
0
 private void ChangeBtnIcon()
 {
     if (UpWorker.GetInstance().IsPause)
     {
         btnStartPause.IconChar = IconChar.Play;
         btnStartPause.Text     = "Start";
     }
     else
     {
         btnStartPause.IconChar = IconChar.Pause;
         btnStartPause.Text     = "Pause";
     }
 }
 private void выходToolStripMenuItem_Click(object sender, System.EventArgs e)
 {
     UpWorker.GetInstance().IsWork = !UpWorker.GetInstance().IsWork;
     forseclose = true;
     Application.Exit();
 }
Beispiel #4
0
 private void btnStartPause_Click(object sender, EventArgs e)
 {
     UpWorker.GetInstance().IsPause = !UpWorker.GetInstance().IsPause;
     ChangeBtnIcon();
 }