public void SetScore(int iNS, int iEW, bool bCompl) { DealScore old = score; bool oldCompleted = robCompleted; this.score.NS = iNS; this.score.EW = iEW; this.robCompleted = bCompl; if ((!old.Equals(this.score) || !oldCompleted.Equals(this.robCompleted)) && IsChangedHandlers()) { OnChanged(this, null); //OnChanged(this, new ChangedEventsArgs(old, this.score)); //OnChanged(this, new ChangedEventsArgs(oldCompleted, this.robCompleted)); } }
public void SetScore(int iNS, int iEW, bool bCompl) { DealScore old = score; bool oldCompleted = matchCompleted; this.score.NS = iNS; this.score.EW = iEW; this.matchCompleted = bCompl; if (matchCompleted) { score_VP = BridgeGameScoring.IMPtoVP(score, dealsInMatch); } else { score_VP = new DealScore(0, 0); } if ((!old.Equals(this.score) || !oldCompleted.Equals(this.matchCompleted)) && IsChangedHandlers()) { OnChanged(this, null); //OnChanged(this, new ChangedEventsArgs(old, this.score)); //OnChanged(this, new ChangedEventsArgs(oldCompleted, this.matchCompleted)); } }