コード例 #1
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            FormAdminUserEdit edituser = new FormAdminUserEdit(data[ListIndex]);

            edituser.ShowDialog();
            LoadListView();
        }
コード例 #2
0
        private void list_pegawai_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewHitTestInfo info = list_pegawai.HitTest(e.X, e.Y);
            var row = info.Item.Index;
//            FormAdminUserEdit edituser = new FormAdminUserEdit(data[row]);
            FormAdminUserEdit edituser = new FormAdminUserEdit(viewdata[row]);

            edituser.ShowDialog();
            LoadListView();
        }