Exemplo n.º 1
0
        /// <inheritdoc />
        public override void Configure(IMode mode)
        {
            if (mode.ContainsParameter <bool>("LockOnCourseStart"))
            {
                lockOnCourseStart = mode.GetParameter <bool>("LockOnCourseStart");
            }

            if (mode.ContainsParameter <bool>("LockOnCourseFinished"))
            {
                lockOnCourseFinished = mode.GetParameter <bool>("LockOnCourseFinished");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Configures this parameter with the given mode.
 /// </summary>
 public void Configure(IMode mode)
 {
     if (mode.ContainsParameter <T>(key))
     {
         Value = mode.GetParameter <T>(key);
     }
     else
     {
         Reset();
     }
 }