UserEfficiencyTracker.DailyProductivityPopUp.DailyProductivityPopUp_OnClosed C# (CSharp) Метод

DailyProductivityPopUp_OnClosed() приватный Метод

todo: unsure if still needed
private DailyProductivityPopUp_OnClosed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void DailyProductivityPopUp_OnClosed(object sender, EventArgs e)
        {
            foreach (Window window in Application.Current.Windows)
            {
                var windowName = window.GetType().Name;

                if (!windowName.Equals("DailyProductivityPopUp") || window == this) continue;

                // Adjust any windows that were above this one to drop down
                if (window.Top < this.Top)
                {
                    window.Top = window.Top + this.ActualHeight;
                }
            }
        }