コード例 #1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (UserManagement.AllowEdit("ProductPrice") == true)
     {
         ProductPrice price = null;
         try
         {
             price = metroGrid1.SelectedRows[0].DataBoundItem as ProductPrice;
             frmProductPriceDetail frmCreate = new frmProductPriceDetail(price);
             frmCreate.Show();
         }
         catch { }
     }
     else
     {
         FlatMsgBox.Show("Bạn không có quyền chỉnh sửa");
     }
 }