private static void ShowInstance(Form owner) { lock (_lockObject) { if (_instance != null) { throw new Exception("Dialog instance already exists"); } _instance = new WaitDialog(); _instance.Show(owner); _instance.Owner.Enabled = false; } }