Exemple #1
0
		public void SetMode(IPracticeMode mode) {
			if (this.mode == mode)
				return;

			if (this.mode != null)
				this.mode.Stop();

			this.mode = mode;
			mode.Start(this);
		}
Exemple #2
0
        public void SetMode(IPracticeMode mode)
        {
            if (this.mode == mode)
            {
                return;
            }

            if (this.mode != null)
            {
                this.mode.Stop();
            }

            this.mode = mode;
            mode.Start(this);
        }