C# Class Prizm.Main.Forms.MainChildForm.PrizmApplicationXtraForm

Mostra file Open project: AleksMorozova/prizm Class Usage Examples

Protected Properties

Property Type Description
localizedNotificationPanelButton List

Public Methods

Method Description
HideProcessing ( ) : void

Hide wait form, when UI thread will be responsible again

IncProcessingState ( ) : void

SavePipeState progress on wait form, should be called on each processing step of the long processing with known number of steps. To init progress on the wait form you should previously call ShowProcessing(, , steps)

InvokeIfRequired ( Control control, Action method ) : void
PrizmApplicationXtraForm ( ) : System
ShowError ( string text, string header ) : void

Error message that requires user confirmation (OK)

ShowFailure ( string text, string header ) : void

Message about failure, that doesn't require user confirmation.

ShowInfo ( string text, string header ) : void

Informational message that requires user confirmation (OK)

ShowNotify ( string text, string header ) : void

Informational message, that doesn't require user confirmation.

ShowProcessing ( string text = "", string header = "", int steps ) : void

Show wait form. Call it at times when UI thread will be unresponsible For now used 1. on Executing commands through the CommandManager 2. when creating and showing child forms

ShowSuccess ( string text, string header ) : void

Message about success, that doesn't require user confirmation.

ShowWarning ( string text, string header ) : void

Warning message that requires user confirmation (OK)

ShowWindow ( ) : void
ShowYesNo ( string text, string header ) : bool

Message that requires user confirmation or denial (yes/no)

ShowYesNoCancel ( string text, string header ) : int

Message that requires user confirmation, denial or operation cancellation (yes/no/cancel) Now is not used. In case of using to avoid problems with localization it is better to create own dialog form, similar to YesNoDialog

UpdateStatusBar ( string text ) : void
UpdateTitle ( ) : void

Protected Methods

Method Description
CreateLocalizedItems ( ) : List
Dispose ( bool disposing ) : void

Clean up any resources being used.

WndProc ( Message &message ) : void

Private Methods

Method Description
CascadeChangeLanguage ( ) : void

Main window will modify own text according to current language, and impel it's children to do so.

CreateLanguageBarListItem ( ) : void
GetNewAppWaitForm ( ) : AppWaitForm
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnNotificationRefresh ( object sender, EventArgs e ) : void

SavePipeState count system notification on status bar

PrizmApplicationXtraForm_FormClosed ( object sender, FormClosedEventArgs e ) : void
PrizmApplicationXtraForm_Load ( object sender, EventArgs e ) : void
ProvideAccessToMenuItems ( ) : void
ShowNotificationForm ( ) : void
StatusNotifyText ( string text ) : void
UpdateNumberOfNotification ( ) : void
barButtonItemAbout_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemAudit_ItemClick_1 ( object sender, ItemClickEventArgs e ) : void
barButtonItemComponentry_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemConstructionReports_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemExit_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemExport_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemFindEditJoints_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemFindEditParts_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemFindEditShipRailcars_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemImport_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemInspectionFindEditPipes_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemInspectionReports_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemMillFindEditPipes_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemMillReports_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemNewComponent_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemNewJoint_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemNewPipe_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemNewRailcar_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemPartIncomingInspection_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemRoles_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSettingsInspectors_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSettingsPipe_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSettingsPipeline_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSettingsProject_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSettingsUsers_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSettingsWelders_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonItemSpool_ItemClick ( object sender, ItemClickEventArgs e ) : void
barButtonStatusNotifications_ItemClick ( object sender, ItemClickEventArgs e ) : void
btnHistoryExportImport_ItemClick ( object sender, ItemClickEventArgs e ) : void
importantMessages_ItemClick ( object sender, ItemClickEventArgs e ) : void
languageBarListItem_ListItemClick ( object sender, ListItemClickEventArgs e ) : void

On choosing language in main program menu

notifyBarStaticItem_ItemClick ( object sender, ItemClickEventArgs e ) : void
pipeConstructionRepoBarButton_ItemClick ( object sender, ItemClickEventArgs e ) : void
weldConstructionRepoBarButton_ItemClick ( object sender, ItemClickEventArgs e ) : void

Method Details

CreateLocalizedItems() protected method

protected CreateLocalizedItems ( ) : List
return List

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

HideProcessing() public method

Hide wait form, when UI thread will be responsible again
public HideProcessing ( ) : void
return void

IncProcessingState() public method

SavePipeState progress on wait form, should be called on each processing step of the long processing with known number of steps. To init progress on the wait form you should previously call ShowProcessing(, , steps)
public IncProcessingState ( ) : void
return void

InvokeIfRequired() public method

public InvokeIfRequired ( Control control, Action method ) : void
control Control
method Action
return void

PrizmApplicationXtraForm() public method

public PrizmApplicationXtraForm ( ) : System
return System

ShowError() public method

Error message that requires user confirmation (OK)
public ShowError ( string text, string header ) : void
text string
header string
return void

ShowFailure() public method

Message about failure, that doesn't require user confirmation.
public ShowFailure ( string text, string header ) : void
text string message body
header string message header
return void

ShowInfo() public method

Informational message that requires user confirmation (OK)
public ShowInfo ( string text, string header ) : void
text string message body
header string message header
return void

ShowNotify() public method

Informational message, that doesn't require user confirmation.
public ShowNotify ( string text, string header ) : void
text string message body
header string message header
return void

ShowProcessing() public method

Show wait form. Call it at times when UI thread will be unresponsible For now used 1. on Executing commands through the CommandManager 2. when creating and showing child forms
public ShowProcessing ( string text = "", string header = "", int steps ) : void
text string message body, optional
header string message header, optional
steps int overall steps provide to show progress bar, and on each step call IncProcessingState(), optional
return void

ShowSuccess() public method

Message about success, that doesn't require user confirmation.
public ShowSuccess ( string text, string header ) : void
text string message body
header string message header
return void

ShowWarning() public method

Warning message that requires user confirmation (OK)
public ShowWarning ( string text, string header ) : void
text string message body
header string message header
return void

ShowWindow() public method

public ShowWindow ( ) : void
return void

ShowYesNo() public method

Message that requires user confirmation or denial (yes/no)
public ShowYesNo ( string text, string header ) : bool
text string message body
header string message header
return bool

ShowYesNoCancel() public method

Message that requires user confirmation, denial or operation cancellation (yes/no/cancel) Now is not used. In case of using to avoid problems with localization it is better to create own dialog form, similar to YesNoDialog
public ShowYesNoCancel ( string text, string header ) : int
text string message body
header string message header
return int

UpdateStatusBar() public method

public UpdateStatusBar ( string text ) : void
text string
return void

UpdateTitle() public method

public UpdateTitle ( ) : void
return void

WndProc() protected method

protected WndProc ( Message &message ) : void
message Message
return void

Property Details

localizedNotificationPanelButton protected_oe property

protected List localizedNotificationPanelButton
return List