Exemplo n.º 1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            dLeitores obj = new dLeitores(0, true);

            obj.ShowDialog();
            Methods.updateListView(listView, columns, tables, conditions);
        }
Exemplo n.º 2
0
 private void buttonEdit_Click(object sender, EventArgs e)
 {
     if (listView.SelectedItems.Count == 1)
     {
         dLeitores obj = new dLeitores(Convert.ToInt32(listView.SelectedItems[0].Text), true);
         obj.ShowDialog();
         Methods.updateListView(listView, columns, tables, conditions);
     }
     else
     {
         MessageBox.Show("Tem de selecionar um item primeiro.");
     }
 }