C# 클래스 Habanero.Faces.Win.HabaneroAppWin

Provides a template for a standard Habanero application, including standard fields and initialisations. Specific details covered are:
  • The class definitions that define how the data is represented and limited
  • The database configuration, connection and settings
  • A logger to record debugging and error messages
  • An exception notifier to communicate exceptions to the user
  • Automatic version upgrades when an application is out-of-date
  • A synchronisation controller
  • A control factory to create controls
  • A data accessor that specifies what type of data source is used (DB by default)
To set up and launch an application:
  1. Instantiate the application with the constructor
  2. Specify any individual settings as required
  3. Call the Startup() method to launch the application
상속: Habanero.Faces.Base.HabaneroAppUI
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

공개 메소드들

메소드 설명
HabaneroAppWin ( string appName, string appVersion ) : System

Constructor to initialise a new application with basic application information. Use the Startup() method to launch the application.

보호된 메소드들

메소드 설명
SetupControlFactory ( ) : void

Sets the control factory used to create controls

SetupDatabaseConnection ( ) : void

Sets up the database connection. If not provided, then reads the connection from the config file.

SetupExceptionNotifier ( ) : void

Sets up the exception notifier used to display exceptions to the final user. If not specified, assumes the FormExceptionNotifier.

SetupLogging ( ) : void
SetupSettings ( ) : void

Initialises the settings. If not provided, DatabaseSettings is assumed.

메소드 상세

HabaneroAppWin() 공개 메소드

Constructor to initialise a new application with basic application information. Use the Startup() method to launch the application.
public HabaneroAppWin ( string appName, string appVersion ) : System
appName string The application name
appVersion string The application version
리턴 System

SetupControlFactory() 보호된 메소드

Sets the control factory used to create controls
protected SetupControlFactory ( ) : void
리턴 void

SetupDatabaseConnection() 보호된 메소드

Sets up the database connection. If not provided, then reads the connection from the config file.
protected SetupDatabaseConnection ( ) : void
리턴 void

SetupExceptionNotifier() 보호된 메소드

Sets up the exception notifier used to display exceptions to the final user. If not specified, assumes the FormExceptionNotifier.
protected SetupExceptionNotifier ( ) : void
리턴 void

SetupLogging() 보호된 메소드

protected SetupLogging ( ) : void
리턴 void

SetupSettings() 보호된 메소드

Initialises the settings. If not provided, DatabaseSettings is assumed.
protected SetupSettings ( ) : void
리턴 void