public FileSaver(int dash, TimePeriod period, Game game) { _dash = dash; _start = period.Start; _end = period.End; _snails = game.Snails; _players = game.Players; }
private void BtCalculate_Click(object sender, EventArgs e) { SetPlaces(); var period = new TimePeriod { Start = _start, End = _end }; var game = new Game { Snails = _snails, Players = _players }; FileSaver fileSaver = new FileSaver(_dash, period, game ); fileSaver.SaveLogFile(ConfigurationManager.AppSettings["LogFile"]); ClearAntes(); }