public void LoadPosition() { this.recordedLocation = loadFromFile(); if (this.recordedLocation != null) { this.form.Location = this.recordedLocation.Location; } else { this.form.Location = Cursor.Position; } }
public void RecordPosition() { this.recordedLocation = new ScreenLocation(this.form.Location); saveToFile(); }