C# Class Te.StahpIt.Views.BaseView

Base class that all views in this application should extend from. This is so that each of those views has the basic mechanism for data or user driven events to raise requests to modify the current view to respond to or notify the user.
Inheritance: System.Windows.Controls.UserControl, IViewController
Exibir arquivo Open project: TechnikEmpire/StahpIt-WPF

Protected Properties

Property Type Description
m_logger Logger

Public Methods

Method Description
BaseView ( ) : MahApps.Metro.Controls

Default ctor.

Protected Methods

Method Description
RequestViewChange ( System.Windows.Controls.View view, object data = null ) : void

Requests a change of view.

ShowUserMessage ( string title, string message, string acceptButtonText = "Ok" ) : void

Displays a message to the user as an overlay, that the user can only accept.

Method Details

BaseView() public method

Default ctor.
public BaseView ( ) : MahApps.Metro.Controls
return MahApps.Metro.Controls

RequestViewChange() protected method

Requests a change of view.
protected RequestViewChange ( System.Windows.Controls.View view, object data = null ) : void
view System.Windows.Controls.View /// The requested view. ///
data object /// Optional data for the requested view. ///
return void

ShowUserMessage() protected method

Displays a message to the user as an overlay, that the user can only accept.
protected ShowUserMessage ( string title, string message, string acceptButtonText = "Ok" ) : void
title string /// The large title for the message overlay. ///
message string /// The message content. ///
acceptButtonText string /// The text to display in the acceptance button. ///
return void

Property Details

m_logger protected_oe property

Logger for views.
protected Logger m_logger
return Logger