private void Model_ClocksAdded(object sender, ClocksEventArgs e)
 {
     foreach (ClockM c in e.Clocks)
     {
         UpdateClosestRingingMomentClockBasedOnChangedClock(c);
     }
 }
        private void OnClocksAdded(ClocksEventArgs e)
        {
            foreach (ClockM cd in e.Clocks)
            {
                SubscribeToClock(cd);

                // before sorting...
                //CollectionChanged?.Invoke(this,
                //    new NotifyCollectionChangedEventArgs(
                //        NotifyCollectionChangedAction.Add, cd));
            }

            // this sorts sometimes...
            ClocksAdded?.Invoke(this, e);
        }
        private void Model_ClocksAdded(object sender, ClocksEventArgs e)
        {
            foreach (ClockM m in e.Clocks)
            {
                ClockVM vm = MyDataFile.ClockVMCollection.VMForM(m);

                if (m is TimerData tdd)
                {
                    var tmi = new ClockMenuItem();
                    tmi.DataContext = vm;
                    //if (tdd.Running)
                    //{
                    AddTimerMenuItemToMainMenu(tmi);
                    //}
                    //else
                    //{
                    //    MyInactiveMenuItem.Items.Insert(0, tmi);
                    //}
                }
            }

            UpdateSeparatorsVisibility();
        }