public ReplayManager(GameSettings settings) { Image = new GameImage(); Image.Settings = settings; FileName = "Football Savefile " + DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + ".fsg"; serializer = new XmlSerializer(typeof(GameImage)); }
public GameImageEventArgs(GameImage image) { Image = image; }
/// <summary> /// Saves the received game image. /// It's last roundimage will be used if the "Use"-checkbox in the multiplayer lobby is selected. /// That will continue the saved multiplayer game. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void CurrentClient_GameImageReceived(object sender, GameImageEventArgs e) { CachedSavefile = e.Image; CurrentLobby.CurrentFieldSettingsPanel.IsBlocked = true; CurrentLobby.BeginInvoke((MethodInvoker)(() => { CurrentLobby.UseSavefileBox.CheckedChanged -= UseSavefileBox_CheckedChanged; CurrentLobby.UseSavefileBox.Checked = true; CurrentLobby.UseSavefileBox.CheckedChanged += UseSavefileBox_CheckedChanged; })); }