1. Alexander Kolesnikov
  2. ClientFramework

Commits

Alexander Kolesnikov  committed 70c741c

ShowErrors improved

  • Participants
  • Parent commits 66aad07
  • Branches default

Comments (0)

Files changed (1)

File ClientFramework/ClientFramework/Workspace/SmartApplication.cs

View file
 			}
 
 			if (control == null)
-				control = Application.OpenForms[0];
+				control = Application.OpenForms[Application.OpenForms.Count - 1];
 
 			workItemForm = (Form)control;
+			workItemForm.Enabled = false;
 
 			Form backgroundForm = new Form();
 			_backgroundForm = backgroundForm;
 				((Form)_dataErrorForm).Owner.BringToFront();
 				((Form)_dataErrorForm).Owner.TopMost = true;
 				((Form)_dataErrorForm).Owner.TopMost = false;
+
+				((Form)_dataErrorForm).Owner.Enabled = true;
 			}
 		}