private void ChannelConfigUIPropertyChanged(object sender, EventArgs e)
        {
            ChannelConfigUI configUI = sender as ChannelConfigUI;
            int             index    = channelConfigUI.IndexOf(configUI);
            char            group    = configUI.ChannelGroup;

            //Console.WriteLine($"{channelConfigUI.IndexOf(configUI)}:{configUI.ChannelGroup}");
            MainWindow.instance.SendChannelLinkGroup(index, group);
        }
 private void channelConfigWindow_Loaded(object sender, RoutedEventArgs e)
 {
     channelDataGrid.DataContext        = this;
     channelDataGrid.ItemsSource        = channelConfigUI;
     channelConfigUI.CollectionChanged += ChannelConfigUI_CollectionChanged;
     for (int i = 1; i <= 64; i++)
     {
         ChannelConfigUI channel = new ChannelConfigUI(channelConfig.channels[i - 1]);
         channelConfigUI.Add(channel);
     }
 }