2. PS.Framework.Controls

The assembly PS.Framework.Controls.dll holds helpfull controls.

2.1 WaitingPanel

The WaitingPanel is a Control that can be used as overlay while an long-dated operation is running. An example of using the panel is shown below:

WaitingPanel pnlWait = new WaitingPanel();
pnlWait.Text = "Please wait, performing long-datet operation.";
this.Controls.Add(pnlWait);

The WaitingPanel also can be added to the view in designmode and while runtime made visible and invisible.

2.2 AboutView

The AboutView is a control that can be used for showing application informations. Currently it shows the following informations:
  1. AssemblyTitle
  2. ProductName
  3. Version
  4. Copyright
  5. AssemblyDescription

AboutView.png

In PS.Framework its used for the about dialog.

2.3 AssemblyView

The AssemblyView is a control for showing all referenced assemblies and there versions.

AssemblyView.png

In PS.Framework its used for the about dialog.

2.4 SystemInfoPanel

The SystemInfoPanel shows informations about the personal computer the application is running on and a list of all assemblies that are referenced to the main assembly (most times the running application).
Currently there are shown the following informations:
  1. Computername
  2. logged in user
  3. Operating system
  4. processor informations
  5. size of the random access memory
  6. the list of referenced assemblies and there versions

SystemInfoPanel.png

In PS.Framework its used for the about dialog.

2.5 StatusBar

The StatusBar is a control derived from the .NET StatusStrip. It contains a DateTimePanel which shows the current date and time. For easier reading state messages it shows errors and success messages in different collors.
For setting a state it contains the method SetState which takes the parameters state and message.

An example for setting an error is:
this.statusBar.SetState(StateType.Error, "Failed to run the operation.");

StatusBar.png

Last edited Apr 12, 2012 at 6:36 PM by inflames2k, version 2

Comments

No comments yet.