C# Class MediaOwl.Core.NamingConventions

This class is used to identify naming conventions, that are not part of the CM-Framework.
显示文件 Open project: Slesa/Playground

Public Properties

Property Type Description
HomePostFix string
SinglePostFix string
ViewModelPostFix string

Public Methods

Method Description
GetHomeScreenName ( this screen, bool returnQualified = false ) : string

Gets the name of the HomeScreen of a given screen.

GetHomeScreenType ( this screen ) : Type

Gets the Type of the HomeScreen of a given screen.

Uses GetHomeScreenName

GetMainScreenName ( this screen, bool returnQualified = false ) : string

Gets the name of the MainScreen of a given screen.

GetMainScreenType ( this screen ) : Type

Gets the Type of the MainScreen of a given screen.

Uses GetMainScreenName

GetSingleScreenName ( this screen, bool returnQualified = false ) : string

Gets the name of the SingleScreen of a given screen.

GetSingleScreenType ( this screen ) : Type

Gets the Type of the SingleScreen of a given screen.

Uses GetSingleScreenName

IsHomeScreen ( this screen ) : bool

Indicates, if the given screen is a HomeScreen.

IsMainScreen ( this screen ) : bool

Indicates, if the given screen is a MainScreen.

IsSingleScreen ( this screen ) : bool

Indicates, if the given screen is a SingleScreen.

Private Methods

Method Description
GetQualifiedViewModelName ( IScreen screen, string targetPostFix, string viewModelPostFix ) : string

Gets the fully qualified name of a ViewModel. Just adds the AssemblyQualifiedName to the GetViewModelName.

GetViewModelName ( IScreen screen, string targetPostFix, string viewModelPostFix ) : string

Gets the name of a ViewModel.

Method Details

GetHomeScreenName() public static method

Gets the name of the HomeScreen of a given screen.
public static GetHomeScreenName ( this screen, bool returnQualified = false ) : string
screen this The screen
returnQualified bool If true, the returned string will be the qualified name
return string

GetHomeScreenType() public static method

Gets the Type of the HomeScreen of a given screen.
Uses GetHomeScreenName
public static GetHomeScreenType ( this screen ) : Type
screen this The screen
return System.Type

GetMainScreenName() public static method

Gets the name of the MainScreen of a given screen.
public static GetMainScreenName ( this screen, bool returnQualified = false ) : string
screen this The screen
returnQualified bool If true, the returned string will be the qualified name
return string

GetMainScreenType() public static method

Gets the Type of the MainScreen of a given screen.
Uses GetMainScreenName
public static GetMainScreenType ( this screen ) : Type
screen this The screen
return System.Type

GetSingleScreenName() public static method

Gets the name of the SingleScreen of a given screen.
public static GetSingleScreenName ( this screen, bool returnQualified = false ) : string
screen this The screen
returnQualified bool If true, the returned string will be the qualified name
return string

GetSingleScreenType() public static method

Gets the Type of the SingleScreen of a given screen.
Uses GetSingleScreenName
public static GetSingleScreenType ( this screen ) : Type
screen this The screen
return System.Type

IsHomeScreen() public static method

Indicates, if the given screen is a HomeScreen.
public static IsHomeScreen ( this screen ) : bool
screen this The screen
return bool

IsMainScreen() public static method

Indicates, if the given screen is a MainScreen.
public static IsMainScreen ( this screen ) : bool
screen this The screen
return bool

IsSingleScreen() public static method

Indicates, if the given screen is a SingleScreen.
public static IsSingleScreen ( this screen ) : bool
screen this The screen
return bool

Property Details

HomePostFix public_oe static_oe property

public static string HomePostFix
return string

SinglePostFix public_oe static_oe property

public static string SinglePostFix
return string

ViewModelPostFix public_oe static_oe property

public static string ViewModelPostFix
return string