B2017-114 Fixed issue where PROMS was trying to adjust the location of steps on the screen when shutting down, and sometimes hanging in the process.

This commit is contained in:
John Jenko 2017-06-08 17:16:10 +00:00
parent 036938d9d9
commit 7c615cf182
2 changed files with 9 additions and 0 deletions

View File

@ -2393,6 +2393,7 @@ namespace Volian.Controls.Library
/// </summary>
internal void AdjustLocation()
{
if (MyStepPanel.ShuttingDown) return;
if (RNORight) MoveRNO(); // This is needed when an AER is Deleted that has an RNO.
MoveSupInfo(); // If the current item has supplemental information, be sure its top location is that of the current item.
if (RNOLevel > 0 && AEREditItem != null)

View File

@ -7,12 +7,20 @@ namespace Volian.Controls.Library
/// </summary>
private System.ComponentModel.IContainer components = null;
private bool _ShuttingDown = false;
public bool ShuttingDown
{
get { return _ShuttingDown; }
set { _ShuttingDown = value; }
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
ShuttingDown = disposing;
if (disposing && (components != null))
{
SelectedEditItem = null; // Save Changes