private void ContractsListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (currentEditWindow != null && currentEditWindow.IsVisible) { currentEditWindow.Close(); } EditTabs result = Globals.openEditOn(ContractsListView); if (result != null) { currentEditWindow = result; } }