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