Ejemplo n.º 1
0
        private void InitParas(string strID)
        {
            client = new PermissionServiceClient();

            client.SysPermissionUpdateCompleted        += new EventHandler <SysPermissionUpdateCompletedEventArgs>(client_SysPermissionUpdateCompleted);
            client.GetSysPermissionByIDCompleted       += new EventHandler <GetSysPermissionByIDCompletedEventArgs>(client_GetSysPermissionByIDCompleted);
            client.GetSysDictionaryByCategoryCompleted += new EventHandler <GetSysDictionaryByCategoryCompletedEventArgs>(ServiceClient_GetSysDictionaryByCategoryCompleted);
            client.SysPermissionAddCompleted           += new EventHandler <SysPermissionAddCompletedEventArgs>(client_SysPermissionAddCompleted);
            client.GetSysMenuByIDCompleted             += new EventHandler <GetSysMenuByIDCompletedEventArgs>(ServiceClient_GetSysMenuByIDCompleted);
            if (!string.IsNullOrEmpty(strID))
            {
                client.GetSysPermissionByIDAsync(strID);
            }
        }
Ejemplo n.º 2
0
 private void InitParas(string strID)
 {
     client = new PermissionServiceClient();
     
     client.SysPermissionUpdateCompleted += new EventHandler<SysPermissionUpdateCompletedEventArgs>(client_SysPermissionUpdateCompleted);
     client.GetSysPermissionByIDCompleted += new EventHandler<GetSysPermissionByIDCompletedEventArgs>(client_GetSysPermissionByIDCompleted);
     client.GetSysDictionaryByCategoryCompleted += new EventHandler<GetSysDictionaryByCategoryCompletedEventArgs>(ServiceClient_GetSysDictionaryByCategoryCompleted);
     client.SysPermissionAddCompleted += new EventHandler<SysPermissionAddCompletedEventArgs>(client_SysPermissionAddCompleted);
     client.GetSysMenuByIDCompleted += new EventHandler<GetSysMenuByIDCompletedEventArgs>(ServiceClient_GetSysMenuByIDCompleted);
     if (!string.IsNullOrEmpty(strID))
     {
         client.GetSysPermissionByIDAsync(strID);
     }
     
 }