3D dynamic element tracking
TrackSelectionDlg.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.Data;
using System.Drawing;
using System.Windows.Forms;

namespace GlobeDynamicObjectTracking
{
  /// <summary>
  /// This dialog allow user to select the required type of tracking
  /// </summary>
  public partial class TrackSelectionDlg : Form
  {
    public TrackSelectionDlg()
    {
      InitializeComponent();
    }

    /// <summary>
    /// OK button click event handler
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void btnOK_Click(object sender, EventArgs e)
    {
      this.DialogResult = DialogResult.OK;

    }

    /// <summary>
    /// Cancel button click event handler
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    private void btnCancel_Click(object sender, EventArgs e)
    {
      this.DialogResult = DialogResult.Cancel;
    }

    /// <summary>
    /// Returns the selected mode of tracking (above the element or behind the element)
    /// </summary>
    public bool UseOrthoTrackingMode
    {
      get { return chkOrthogonal.Checked;  }
    }
  }
}