Beispiel #1
0
 private void buttonLoad_Click(object sender, System.EventArgs e)
 {
     if (this.listViewFiles.SelectedItems.Count > 0 &&
         SaveOrOpen.LoadGame(this.listViewFiles.SelectedItems[0].SubItems[1].Text))
     {
         Game.Start();
         this.Close();
     }
 }
Beispiel #2
0
 private void listViewFiles_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Clicks > 1)
     {
         if (SaveOrOpen.LoadGame(this.listViewFiles.GetItemAt(e.X, e.Y).SubItems[1].Text))
         {
             Game.Start();
             this.Close();
         }
     }
 }