static void OnConfigurationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            VesselDataControl me = sender as VesselDataControl;

            if (me != null)
            {
                me.Dispatcher.BeginInvoke(new Action(me.LoadFirstVesselDataFile), System.Windows.Threading.DispatcherPriority.Render);
            }
        }
        static void OnDataChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            VesselDataControl me = sender as VesselDataControl;

            if (me != null)
            {
                VesselDataObject d = e.OldValue as VesselDataObject;
                if (d != null)
                {
                    if (!string.IsNullOrEmpty(me.WorkFile) && File.Exists(me.WorkFile))
                    {
                        me.SetWatcher(me.WorkFile);
                    }
                    if (d.HullRaces != null)
                    {
                        d.HullRaces.CollectionChanged -=
                            new System.Collections.Specialized.NotifyCollectionChangedEventHandler(me.HullRaces_CollectionChanged);
                        me.HullRaceEventSubscribed = false;
                    }
                }
                me.LoadHullRaceFilter();
                //me.LoadVesselView();
            }
        }