示例#1
0
 private void tlaAddFormato_Load(object sender, EventArgs e)
 {
     formato = new Banco.Formato();
     if (!formato.conectar())
     {
         this.Close();
         MessageBox.Show("Banco de dados indisponivel", "Alerta | Knoodou");
     }
     if (this.id > 0)
     {
         this.Text = "Editar gênero | Knoodou";
         string[] valores = formato.buscarUmFormato(this.id);
         inNome.Text = valores[0];
         inLanc.Text = valores[1];
         inNormal.Text = valores[2];
         btOk.Text = "Atualizar";
     }
 }
示例#2
0
 private void tlaAddFormato_Load(object sender, EventArgs e)
 {
     formato = new Banco.Formato();
     if (!formato.conectar())
     {
         this.Close();
         MessageBox.Show("Banco de dados indisponivel", "Alerta | Knoodou");
     }
     if (this.id > 0)
     {
         this.Text = "Editar gênero | Knoodou";
         string[] valores = formato.buscarUmFormato(this.id);
         inNome.Text   = valores[0];
         inLanc.Text   = valores[1];
         inNormal.Text = valores[2];
         btOk.Text     = "Atualizar";
     }
 }
示例#3
0
 private void tlaCRUDformato_Load(object sender, EventArgs e)
 {
     listar = new Banco.Formato();
     this.popularTabela();
 }
示例#4
0
 private void tlaCRUDformato_Load(object sender, EventArgs e)
 {
     listar = new Banco.Formato();
     this.popularTabela();
 }