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(); } }
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(); } } }