private void buttonImport_Click(object sender, EventArgs e)
{
createTrackOptions.OverwriteTrack = this.checkBoxOverwriteTrack.Checked;
createTrackOptions.ReverseOrder = this.checkBoxReverseOrder.Checked;
createTrackOptions.TrackName = this.textBoxTrackName.Text;
createTrackOptions.SimplificationFactor = (double)this.trackBar1.Value / 100.0;
createTrackOptions.PointElement = pointGraphic;
createTrackOptions.LineElement = lineGraphic;
createTrackOptions.AnimatePath = this.checkBoxTracePath.Checked;
if (this.radioButtonLineFeature.Checked)
{
createTrackOptions.PathGeometry = lineFeature;
}
else if (this.radioButtonLineGraphic.Checked)
{
IElement temp = (IElement)lineGraphic;
createTrackOptions.PathGeometry = temp.Geometry;
}
IAGAnimationTracks tracks = AnimationExtension.AnimationTracks;
IAGAnimationContainer pContainer = tracks.AnimationObjectContainer;
AnimationUtils.CreateMapGraphicTrack(createTrackOptions, tracks, pContainer);
AnimationExtension.AnimationContentsModified();
this.Close();
}