public static void Cancel(Window window) { lock (locker) { if (Splits.TryGetValue(window, out var split)) { MoveAction.Invoke(window, split.PreviousArea); Remove(window); } } }