Beispiel #1
0
        private void buttonTermoCompromisso_Click(object sender, EventArgs e)
        {
            if (dataGridViewResultado.SelectedRows.Count >= 1)
            {
                int index = dataGridViewResultado.SelectedRows[0].Index;

                Forms.TermoCompromisso.TermoCompromissoView termoCompromisso = new Forms.TermoCompromisso.TermoCompromissoView();
                termoCompromisso.cliente = Library.ClienteBD.FindById((long)dataGridViewResultado["ColumnId", index].Value);
                termoCompromisso.ShowDialog(this);
            }
        }
Beispiel #2
0
 public void OpenTermoCompromisso(int index)
 {
     Forms.TermoCompromisso.TermoCompromissoView termoCompromisso = new Forms.TermoCompromisso.TermoCompromissoView();
     termoCompromisso.cliente = Library.ClienteBD.FindById((long)dataGridViewResultado["ColumnId", index].Value);
     termoCompromisso.ShowDialog(this);
 }