internal WCFVoting ToWCFVoting() { WCFVoting result = new WCFVoting(); result.Step = this.Step; result.Target = this.Target; if (this.Step1.GameUser1.Game1.LastHomeSteps.Where(p => p.StepType == "Борьба_за_влияние").All(p => p.IsFull)) { result.PowerCount = this.PowerCount; } return(result); }
static internal void CopyTo(this WCFVoting o, Step step) { Voting result = new Voting(step, o.Target); result.PowerCount = o.PowerCount; }