private void timer1_Tick(object sender, EventArgs e) { if (metroProgressBar1.Value < metroProgressBar1.Maximum) { metroProgressBar1.Value += 1; label_percent.Text = string.Format("Processando {0}%", metroProgressBar1.ProgressTotalPercent); label_percent.ForeColor = Color.White; } else { timer1.Stop(); ConnectDAO connect = new ConnectDAO(); connect.BackupMySql(); } }
public ActionResult EditarPessoa(int id) { return(Json(ConnectDAO.PessoasById(id))); }
// GET: Pessoa public ActionResult CadastrarPessoa() { return(View(ConnectDAO.AllPessoas())); }