Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads
 
Add your own
alternative version
Go to top

PixelDragonsMVC.NET - An open source MVC framework

, 29 Jun 2007
An MVC framework with built-in NHibernate support that makes creating ASP.NET 2 applications easier by minimizing code and configuration
pixeldragonsmvc_demo.zip
PixelDragons.MVCSample.Domain
bin
Debug
Iesi.Collections.dll
PixelDragons.MVCSample.Domain.dll
PixelDragons.MVCSample.Domain.pdb
Dependencies
Iesi.Collections.dll
hbm
obj
Debug
PixelDragons.EasyMVCSample.Domain.dll
PixelDragons.EasyMVCSample.Domain.pdb
PixelDragons.MVCSample.Domain.dll
PixelDragons.MVCSample.Domain.pdb
SimpleMVCSample.Domain.dll
SimpleMVCSample.Domain.pdb
TempPE
PixelDragons.MVCSample.Domain.csproj.user
Properties
PixelDragons.MVC
bin
Debug
Castle.DynamicProxy.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
PixelDragons.MVC.dll
PixelDragons.MVC.pdb
Release
Common
Configuration
Controllers
Dependencies
Castle.DynamicProxy.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
Exceptions
Interfaces
obj
Debug
PixelDragons.EasyMVC.dll
PixelDragons.EasyMVC.pdb
PixelDragons.MVC.dll
PixelDragons.MVC.pdb
Refactor
PixelDragons.MVC.dll
ResolveAssemblyReference.cache
SimpleMVC.dll
SimpleMVC.pdb
TempPE
Release
Persistence
PixelDragons.MVC.csproj.user
Properties
PixelDragons.MVCSample
App_Code
Controllers
Base
Bin
Castle.DynamicProxy.dll
Iesi.Collections.dll
log4net.dll
NHibernate.dll
PixelDragons.MVC.dll
PixelDragons.MVC.pdb
PixelDragons.MVCSample.Domain.dll
PixelDragons.MVCSample.Domain.pdb
Documentation
PixelDragonsMVC.NET v0.2 BETA.odt
PixelDragonsMVC.NET v0.2 BETA.pdf
Thumbs.db
SQL Scripts
UI
controls
css
images
background.gif
buttons
back.gif
login.gif
next.gif
save.gif
Thumbs.db
icons
error.gif
info.gif
Thumbs.db
shadow_content.png
shadow_footer.png
shadow_header.png
Thumbs.db
javascript
masterPages
viewParts
views
contacts
users
/***********************************************************
 * 
 * Copyright 2007 Pixel Dragons Ltd. All rights reserved.
 * 
 * http://www.codeplex.com/PixelDragonsMVC for licence, more
 * information and latest source code. 
 * 
 * Check out our other stuff at http://www.pixeldragons.com
 * 
 ***********************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace PixelDragons.MVC
{
    public class Command
    {
        private string _commandText;
        private string _controllerName;
        private string _actionName;
        private string _originalControllerName;
        private string _originalActionName;
        private View _view = null;
        
        public Command(string commandText, string controllerName, string actionName)
        {
            _commandText = commandText;

            _originalControllerName = controllerName;
            _originalActionName = actionName;

            if (_originalActionName == null)
            { 
                _originalActionName = "default";
            }

            _controllerName = CapitalizeString(controllerName);
            _actionName = CapitalizeString(actionName);
        }

        public string ControllerName
        {
            get { return _controllerName; }
        }

        public string ActionName
        {
            get { return _actionName; }
        }

        public string CommandText
        {
            get { return _commandText; }
        }

        public string OriginalControllerName
        {
            get { return _originalControllerName; }
        }

        public string OriginalActionName
        {
            get { return _originalActionName; }
        }

        private string CapitalizeString(string text)
        {
            if (text != null)
            {
                string c = text.Substring(0, 1);
                c = c.ToUpper();
                text = c + text.Substring(1);
            }
            return text;
        }

        public View View
        {
            get { return _view; }
            set { _view = value; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

BigAndy
Web Developer
United Kingdom United Kingdom
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 29 Jun 2007
Article Copyright 2007 by BigAndy
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid