Exemple #1
0
        protected override DataSourceView GetView(string viewName)
        {
            DataSourceView result;

            if ("/" == viewName)
            {
                result = new RolesView(this, viewName);
            }
            else
            {
                if (!string.IsNullOrEmpty(viewName))
                {
                    result = new RoleUsersView(this, viewName);
                }
                else
                {
                    result = new NoEditView(this, string.Empty);
                }
            }
            return(result);
        }
Exemple #2
0
 protected override DataSourceView GetView(string viewName)
 {
     DataSourceView result;
     if ("/" == viewName)
     {
         result = new RolesView(this, viewName);
     }
     else
     {
         if (!string.IsNullOrEmpty(viewName))
         {
             result = new RoleUsersView(this, viewName);
         }
         else
         {
             result = new NoEditView(this, string.Empty);
         }
     }
     return result;
 }