private void Window_LocationChanged(object sender, EventArgs e) { _previousWindowLocaiton = new WindowLocation(); if (Left >= 0 && Top >= 0) { User.Default.WindowLeft = Left; User.Default.WindowTop = Top; User.Default.Save(); } }
private void Window_LocationChanged(object sender, EventArgs e) { _previousWindowLocaiton = new WindowLocation(); if (Left >= 0 && Top >= 0) { User.Default.WindowLeft = this.Left; User.Default.WindowTop = this.Top; User.Default.Save(); } }