Class ProgressIndicatorHelper
Helper functions for ICamIpcProgressIndicator — drives the
native status-bar progress indicator of a running ENCY instance over IPC.
Inheritance
ProgressIndicatorHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class ProgressIndicatorHelper
Methods
CreateProcessIndicator(ComWrapper<ICamIpcApplicationMainForm>, string)
Declaration
public static ComWrapper<ICamIpcProgressIndicator> CreateProcessIndicator(this ComWrapper<ICamIpcApplicationMainForm> mainFormCom, string caption)
Parameters
Returns
GetCaption(ComWrapper<ICamIpcProgressIndicator>)
Declaration
public static string GetCaption(this ComWrapper<ICamIpcProgressIndicator> indicatorCom)
Parameters
Returns
GetPercent(ComWrapper<ICamIpcProgressIndicator>)
Current completion percent (0..100).
Declaration
public static int GetPercent(this ComWrapper<ICamIpcProgressIndicator> indicatorCom)
Parameters
Returns
Hide(ComWrapper<ICamIpcProgressIndicator>)
Hide the indicator and release the status bar. Throws if the indicator is
not currently occupying the status bar.
Declaration
public static void Hide(this ComWrapper<ICamIpcProgressIndicator> indicatorCom)
Parameters
RegisterHandler(ComWrapper<ICamIpcProgressIndicator>, string, ICamIpcEventHandler, ICamIpcEventListener)
Register a handler for progress indicator events (Show/Hide/Break/Progress).
Declaration
public static void RegisterHandler(this ComWrapper<ICamIpcProgressIndicator> indicatorCom, string handlerIdent, ICamIpcEventHandler handler, ICamIpcEventListener listener)
Parameters
SetCaption(ComWrapper<ICamIpcProgressIndicator>, string)
Set the status caption shown next to the indicator. Throws if the
indicator is not currently occupying the status bar.
Declaration
public static void SetCaption(this ComWrapper<ICamIpcProgressIndicator> indicatorCom, string caption)
Parameters
SetPercent(ComWrapper<ICamIpcProgressIndicator>, int)
Set completion percent (0..100). Throws if the indicator is not currently
occupying the status bar.
Declaration
public static void SetPercent(this ComWrapper<ICamIpcProgressIndicator> indicatorCom, int percent)
Parameters
Show(ComWrapper<ICamIpcProgressIndicator>)
Show the indicator and occupy the status bar. Throws if the status bar is
already used by another running process.
Declaration
public static void Show(this ComWrapper<ICamIpcProgressIndicator> indicatorCom)
Parameters
UnregisterHandler(ComWrapper<ICamIpcProgressIndicator>, string)
Unregister a previously registered progress indicator event handler.
Declaration
public static void UnregisterHandler(this ComWrapper<ICamIpcProgressIndicator> indicatorCom, string handlerIdent)
Parameters