private void btnSelect_Click(object sender, RoutedEventArgs e)
 {
     if (dtgItems.SelectedItem != null)
     {
         var ConditionalPermissionDTO = dtgItems.SelectedItem as ConditionalPermissionDTO;
         if (ConditionalPermissionDTO != null)
         {
             ConditionalPermissionSelectedArg arg = new ConditionalPermissionSelectedArg();
             arg.ConditionalPermissionID = ConditionalPermissionDTO.ID;
             if (ConditionalPermissionSelected != null)
             {
                 ConditionalPermissionSelected(this, arg);
             }
         }
     }
 }
コード例 #2
0
 private void View_ConditionalPermissionSelected(object sender, ConditionalPermissionSelectedArg e)
 {
     MyProjectManager.GetMyProjectManager().CloseDialog(sender);
     Message = bizPermission.GetConditionalPermission(e.ConditionalPermissionID);
     ShowData();
 }