Exemple #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            Methods.saveFormProperties();
            dEditora obj = new dEditora(0, true);

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