2. PS.Framework.Controls
The assembly PS.Framework.Controls.dll holds helpfull controls.
2.1 WaitingPanelThe
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 AboutViewThe
AboutView is a control that can be used for showing application informations. Currently it shows the following informations:
- AssemblyTitle
- ProductName
- Version
- Copyright
- AssemblyDescription
In PS.Framework its used for the about dialog.2.3 AssemblyViewThe
AssemblyView is a control for showing all referenced assemblies and there versions.
In PS.Framework its used for the about dialog.2.4 SystemInfoPanelThe
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:
- Computername
- logged in user
- Operating system
- processor informations
- size of the random access memory
- the list of referenced assemblies and there versions
In PS.Framework its used for the about dialog.2.5 StatusBarThe
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.");
