public frmRecords() { InitializeComponent(); UpRecordManager.GetInstance().Update(dataGridView); UpWorker.GetInstance().ListChanged += FrmMain_ListChanged; ChangeBtnIcon(); }
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(); }
private void btnStartPause_Click(object sender, EventArgs e) { UpWorker.GetInstance().IsPause = !UpWorker.GetInstance().IsPause; ChangeBtnIcon(); }