src/BloomExe/web/controllers/CommonApi.cs
/// <summary>
/// Handle showing the settings dialog, opening it to the desired tab.
/// </summary>
/// <remarks>
/// This is here instead of CollectionSettingsApi because we have easier access to
/// showing the dialog via the WorkspaceView object.  But it's a bit tricky getting
/// the dialog to display, and allowing the dialog to display help or to restart
/// the program if the user changes the settings.  Starting the dialog after a very
/// brief delay, and being sure in WorkSpaceView to Invoke it on the UI thread,
/// allows the full functionality without any crashes or annoying yellow dialog boxes.
/// </remarks>
Handle showing the settings dialog, opening it to the desired tab.
Handle showing the settings dialog opening it to the desired tab .
private void HandleShowSettingsDialog(ApiRequest request)
		{
			lock (request)
			{
				var tab = request.Parameters["tab"];
				_timerForOpenSettingsDialog = new System.Threading.Timer(OpenSettingsDialog, tab, 100, System.Threading.Timeout.Infinite);
				request.PostSucceeded();
			}
		}
private void HandleShowSettingsDialog ( ApiRequest request ) { lock ( request ) { var tab = request . Parameters [ " " ] ; _timerForOpenSettingsDialog = new System . Threading . Timer ( OpenSettingsDialog , tab , 100 , System . Threading . Timeout . Infinite ) ; request . PostSucceeded ( ) ; } }
Handle showing the settings dialog, opening it to the desired tab.
Handle showing the settings dialog opening it to the desired tab .
request
ApiRequest
remarks
This is here instead of CollectionSettingsApi because we have easier access to
showing the dialog via the WorkspaceView object.  But it's a bit tricky getting
the dialog to display, and allowing the dialog to display help or to restart
the program if the user changes the settings.  Starting the dialog after a very
brief delay, and being sure in WorkSpaceView to Invoke it on the UI thread,
allows the full functionality without any crashes or annoying yellow dialog boxes.
This is here instead of CollectionSettingsApi because we have easier access to showing the dialog via the WorkspaceView object . But it ' s a bit tricky getting the dialog to display and allowing the dialog to display help or to restart the program if the user changes the settings . Starting the dialog after a very brief delay and being sure in WorkSpaceView to Invoke it on the UI thread allows the full functionality without any crashes or annoying yellow dialog boxes .