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

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