-
Notifications
You must be signed in to change notification settings - Fork 1
API UI Helpers
Some most typical UI-related operations are aggregated in several static helper classes: WindowHelper
, MainWindowHelper
, AuthenticationHelper
and InstanceHelperEx
.
Type: SIM.Tool.Base.WindowHelper, SIM.Tool.Base
This is very handy class for a variety of things, not only windows.
This method raises native Windows select dialog if specific conditions are met or custom multi-select window that waits for users input.
The wrapper around a custom input dialog that prompts user to input some text value
Executes the action in a thread showing native Windows progress dialog.
The wrapper that shows a modal window or regular window depending on the settings.
The wrapper that shows a window and handles all thrown exceptions.
The wrapper around MessageBox with correct title inserted.
Opens specific URL in specific browser specified in settings.
Opens specific path in Windows Explorer.
Opens specific file in default editor.
Type: SIM.Tool.Windows.MainWindowHelper, SIM.Tool.Windows
A helper class for manipulating main window, legacy code that is being refactored into commands located in MainWindowComponents namespace.
Type: SIM.Tool.Base.AuthenticationHelper, SIM.Tool.Base
A helper class for bypassing authentication of local instance. The logic is simple and secure:
- call to the LoginAsAdmin (instance, url) method creates unique key
- the key lifetime is limited to 15 seconds
- the /sitecore/shell/sim-agent folder is being created and the .aspx page is created inside
- the page will be deleted either in 15 seconds or when first requested
- requesting the page will authenticate current visitor as sitecore\admin
Type: SIM.Tool.Base.InstanceHelperEx, SIM.Tool.Base
A helper contains logic for exposing some UI-related logic related to specific Sitecore instance.
Opens specific virtual path (e.g. /sitecore/admin) in front-end or back-end folder.
Checks if the instance has worker process and if it does not then requests keepalive page and waits for any response. This process is executed in background thread with visual progress indication.
Detects the types of log files instance has (e.g. log, crawling.log etc.) and suggest user to choose one. Then it looks for the most recently created file and opens it in bundled LogViewer app. If the instance restarts then LogViewer app is being closed and newly created log is opened instead.