C# Class Settings.UserProfile.Profile

This class implements the model of the user profile part of the application. Typically, users have implicit run-time settings that should be re-activated when the application is re-started at a later point in time (e.g. window size and position). This class organizes these per user specific profile settings and is responsible for their storage (at program end) and retrieval at the start-up of the application.
Inheritance: IProfile
显示文件 Open project: Dirkster99/SuggestBoxLib

Protected Properties

Property Type Description
logger log4net.ILog

Private Properties

Property Type Description

Public Methods

Method Description
CheckSettingsOnLoad ( double SystemParameters_VirtualScreenLeft, double SystemParameters_VirtualScreenTop ) : void

Checks the MainWindow for visibility when re-starting application (with different screen configuration).

GetLastActivePath ( ) : string

Get the path of the file or empty string if file does not exists on disk.

Profile ( ) : Settings.Interfaces

Class constructor

UpdateInsertWindowPosSize ( string windowName, Settings.UserProfile.ViewPosSizeModel model ) : void

Updates or inserts the requested window pos size item in the collection.

Method Details

CheckSettingsOnLoad() public method

Checks the MainWindow for visibility when re-starting application (with different screen configuration).
public CheckSettingsOnLoad ( double SystemParameters_VirtualScreenLeft, double SystemParameters_VirtualScreenTop ) : void
SystemParameters_VirtualScreenLeft double
SystemParameters_VirtualScreenTop double
return void

GetLastActivePath() public method

Get the path of the file or empty string if file does not exists on disk.
public GetLastActivePath ( ) : string
return string

Profile() public method

Class constructor
public Profile ( ) : Settings.Interfaces
return Settings.Interfaces

UpdateInsertWindowPosSize() public method

Updates or inserts the requested window pos size item in the collection.
public UpdateInsertWindowPosSize ( string windowName, Settings.UserProfile.ViewPosSizeModel model ) : void
windowName string
model Settings.UserProfile.ViewPosSizeModel
return void

Property Details

logger protected_oe static_oe property

protected static log4net.ILog logger
return log4net.ILog