Exemple #1
0
        private void Add_btn_Click(object sender, EventArgs e)
        {
            Add_form add_form = new Add_form(true);

            add_form.ShowDialog();
            Update_listview();
        }
Exemple #2
0
 private void listView1_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         if (listView1.SelectedItems.Count > 0)
         {
             ListViewItem item = listView1.SelectedItems[0];
             Program.name     = item.SubItems[0].Text;
             Program.username = item.SubItems[1].Text;
             Program.password = item.SubItems[2].Text;
             Add_form add_form = new Add_form(false);
             add_form.ShowDialog();
         }
         Update_listview();
     }
 }