/// <summary> /// Shows the exception with the box to the user /// </summary> /// <param name="boxUserName">Name of the box that has thrown the exception</param> /// <param name="userMessage">User message to be displayed</param> public void ShowBoxException(string boxUserName, string userMessage) { BoxExceptionDialog dialog = new BoxExceptionDialog(ResManager, boxUserName, userMessage); dialog.TopMost = true; dialog.ShowDialog(); }
/// <summary> /// The procedure for the new thread /// </summary> public void ThreadStart() { modulesManager.UnlockAllBoxes(); BoxExceptionDialog dialog = new BoxExceptionDialog(resourceManager, box.UserName, userMessage); dialog.ShowDialog(); }