using System; using System.Collections.Generic; using System.Text; using System.IO; using ESRI.ArcGIS.Framework; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.ArcMapUI; namespace ArcMapAddin1 { public class ShowTime : ESRI.ArcGIS.Desktop.AddIns.Button { public ShowTime() { } protected override void OnClick() { Arcmap.Application.Caption = DateTime.Now.ToLongTimeString(); } protected override void OnUpdate() { Enabled = ArcMap.Application != null; } }
Solved! Go to Solution.