/// <summary> /// Occurs when this command is created /// </summary> /// <param name="hook">Instance of the application</param> public override void OnCreate(object hook) { if (hook == null) { return; } if (m_hookHelper == null) { m_hookHelper = new HookHelperClass(); } m_hookHelper.Hook = hook; //make sure that the usercontrol has been initialized if (null == m_bikingSpeedCtrl) { m_bikingSpeedCtrl = new DynamicBikingSpeedCtrl(); m_bikingSpeedCtrl.CreateControl(); } }
/// <summary> /// Occurs when this command is created /// </summary> /// <param name="hook">Instance of the application</param> public override void OnCreate(object hook) { if (hook == null) return; if (m_hookHelper == null) m_hookHelper = new HookHelperClass(); m_hookHelper.Hook = hook; //make sure that the usercontrol has been initialized if (null == m_bikingSpeedCtrl) { m_bikingSpeedCtrl = new DynamicBikingSpeedCtrl(); m_bikingSpeedCtrl.CreateControl(); } }