public void NewSection(String title) { Utilities.Log(this.LogFile, "-------------------------------------------------------"); if (_CurrentPlayerTurn != null) { _CurrentPlayerTurn.End(); } _CurrentPlayerTurn = new ucGameMessage(); _CurrentPlayerTurn.LogFile = this.LogFile; _CurrentPlayerTurn.New(title); spArea.Children.Add(_CurrentPlayerTurn); svArea.ScrollToBottom(); svArea.ScrollToLeftEnd(); }
public void NewTurn(int turnNumber) { Utilities.Log(this.LogFile, String.Format("=======================================================", turnNumber)); Utilities.Log(this.LogFile, String.Format("---------------------- Turn #{0} {1}---------------------", turnNumber, (new StringBuilder()).Insert(0, "-", 3 - (int)Math.Log10(turnNumber)))); if (_CurrentGameTurn != null) { _CurrentGameTurn.End(); } _CurrentGameTurn = new ucGameTurn(); _CurrentGameTurn.LogFile = this.LogFile; (_CurrentGameTurn as ucGameTurn).New(turnNumber); spArea.Children.Add(_CurrentGameTurn); svArea.ScrollToBottom(); svArea.ScrollToLeftEnd(); }