コード例 #1
0
ファイル: SerialChart.cs プロジェクト: Hitchhikrr/IgooanaApp
 private static void AttachDataSourceCollectionChangedListener(SerialChart chart, object dataSource) {
   if (dataSource != null && dataSource is INotifyCollectionChanged) {
     (dataSource as INotifyCollectionChanged).CollectionChanged += new NotifyCollectionChangedEventHandler(chart.OnDataSourceCollectionChanged);
   }
 }
コード例 #2
0
ファイル: SerialChart.cs プロジェクト: Hitchhikrr/IgooanaApp
 private static void DetachOldDataSourceCollectionChangedListener(SerialChart chart, object dataSource) {
   if (dataSource != null && dataSource is INotifyCollectionChanged) {
     (dataSource as INotifyCollectionChanged).CollectionChanged -= chart.OnDataSourceCollectionChanged;
   }
 }