DynamicBikingSpeedCtrl.cs
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace DynamicBiking { public partial class DynamicBikingSpeedCtrl : UserControl { private DynamicBikingCmd m_dynamicBikingCmd = null; public DynamicBikingSpeedCtrl() { InitializeComponent(); } public void SetDynamicBikingCmd(DynamicBikingCmd dynamicBikingCmd) { m_dynamicBikingCmd = dynamicBikingCmd; } private void trackBar1_ValueChanged(object sender, EventArgs e) { if (m_dynamicBikingCmd != null) { m_dynamicBikingCmd.PlaybackSpeed = trackBar1.Value; toolTip1.ToolTipTitle = Convert.ToString(trackBar1.Value); } } } }