static void Main(string[] args) { GarfieldKartSaveLoader loader = new GarfieldKartSaveLoader(); string path = GetPath(); GarfieldKartSave save = loader.LoadSave(path); loader.Save(save); Console.WriteLine(save); Console.ReadLine(); }
private void button1_Click(object sender, EventArgs e) { try { loader = new GarfieldKartSaveLoader(); save = loader.LoadSave(locationPath.Text); toolStripStatusLabel1.Text = "Loaded"; } catch (Exception ex) { MessageBox.Show("ERROR loading\n" + ex, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); toolStripStatusLabel1.Text = "Error"; } }