コード例 #1
0
 private void btnTambah_Click(object sender, EventArgs e)
 {
     using (new WaitCursorHandler())
     {
         var frm = new FrmEntryHakAkses(false);
         frm.Owner    = this;
         frm.Listener = this;
         frm.ShowDialog();
     }
 }
コード例 #2
0
        private void btnUbah_Click(object sender, EventArgs e)
        {
            using (new WaitCursorHandler())
            {
                if (ObjectIsSelected)
                {
                    var obj = DgvRoleSelectedItem;
                    var frm = new FrmEntryHakAkses(true, obj.id);

                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                        RefreshDataSource();                                 // Data berhasil diubah
                    }
                }
            }
        }