public void SetMode(IPracticeMode mode) { if (this.mode == mode) return; if (this.mode != null) this.mode.Stop(); this.mode = mode; mode.Start(this); }
public void SetMode(IPracticeMode mode) { if (this.mode == mode) { return; } if (this.mode != null) { this.mode.Stop(); } this.mode = mode; mode.Start(this); }