コード例 #1
0
        void ActiveSkin_ChildPropertyChanged(object sender, ChildPropertyChangedEventArgs args)
        {
            _isDirty = true;

            if (args.SubObject == ActiveSkin && args.PropertyName == FormSkinProperty.Name)
            {
                UpdateSkinList();
            }
        }
コード例 #2
0
 private void OnTriggerVolumePropertyChanged(object sender, ChildPropertyChangedEventArgs e)
 {
     if (e.PropertyName == nameof(TriggerVolume.BlockIndex) || e.PropertyName == nameof(TriggerVolume.Name))
     {
         var vol  = e.Element as TriggerVolume;
         var node = sceneNode.Items.FirstOrDefault(n => (n.Tag as BoxManipulator3D).DataContext == vol);
         if (node != null)
         {
             scenario.Items.FirstOrDefault(i => i.Tag == vol)?.Refresh();
             node.Header = vol.GetDisplayName();
         }
     }
 }
コード例 #3
0
        private void Children_ChildPropertyChanged(object sender, ChildPropertyChangedEventArgs e)
        {
            if (IsBusy || labelValue == null || e.Element != labelValue)
            {
                return;
            }

            var temp = BlockIndex;

            BlockLabels[BlockIndex] = GetEntryString(BlockIndex, labelValue);
            IsBusy = false;

            //force binding to refresh
            blockIndex = -1;
            RaisePropertyChanged(nameof(BlockIndex));
            blockIndex = temp;
            RaisePropertyChanged(nameof(BlockIndex));
        }
コード例 #4
0
        private void OnPlacementPropertyChanged(object sender, ChildPropertyChangedEventArgs e)
        {
            if (e.PropertyName == nameof(ObjectPlacement.BlockIndex) || e.PropertyName == nameof(ObjectPlacement.PaletteIndex) || e.PropertyName == nameof(ObjectPlacement.NameIndex))
            {
                var placement = e.Element as ObjectPlacement;
                var holder    = PaletteHolders[placement.PaletteKey];
                var index     = holder.Definition.Placements.IndexOf(placement);

                if (index < 0)
                {
                    return;
                }

                var info = holder.GetInfoForIndex(index);
                info.TreeItem.Header = placement.GetDisplayName();
                scenario.Items.FirstOrDefault(i => i.Tag == placement)?.Refresh();
            }
        }
コード例 #5
0
 public void ExecuteRouting(object sender, ChildPropertyChangedEventArgs e)
 {
     foreach (var notification in RoutedEvents)
     {
         if (!string.IsNullOrEmpty(notification.ParentPropertyName))
         {
             if (!string.IsNullOrEmpty(notification.ChildPropertyName))
             {
                 if (e.ParentPropertyName == notification.ParentPropertyName && e.PropertyName == notification.ChildPropertyName)
                 {
                     notification.Execute(sender, e);
                 }
             }
             else if (e.ParentPropertyName == notification.ParentPropertyName)
             {
                 notification.Execute(sender, e);
             }
         }
     }
 }
コード例 #6
0
		private void LazyAddressColItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.LAZY_ADDRESS_COL, sender, e);
		}
コード例 #7
0
 void FormSkin_ChildPropertyChanged(object sender, ChildPropertyChangedEventArgs args)
 {
     InvalidateWindow();
 }
コード例 #8
0
		private void Col1ItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.COL1, sender, e);
		}
コード例 #9
0
 private void WorkAddressChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
 {
     NotifyChildPropertyChanged(PROPERTIES.WORK_ADDRESS, sender, e);
 }
コード例 #10
0
 private void ChildrenItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
 {
     NotifyChildPropertyChanged(PROPERTIES.CHILDREN, sender, e);
 }
コード例 #11
0
 private void DateChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
 {
     NotifyChildPropertyChanged(PROPERTIES.DATE, sender, e);
 }
コード例 #12
0
		private void HousesLazyItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.HOUSES_LAZY, sender, e);
		}
コード例 #13
0
		private void CompLazyChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.COMP_LAZY, sender, e);
		}
コード例 #14
0
		private void WorkAddressChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.WORK_ADDRESS, sender, e);
		}
コード例 #15
0
 private void LsItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
 {
     NotifyChildPropertyChanged(PROPERTIES.LS, sender, e);
 }
コード例 #16
0
 public abstract void Execute(object o, ChildPropertyChangedEventArgs args);
コード例 #17
0
 private void NotifyChildPropertyChangedEventHandler(string locationName, ChildPropertyChangedEventArgs args)
 {
     this.ChildPropertyChanged(new List <string> {
         string.Format("{0}.{1}", locationName, args.Path)
     });
 }
コード例 #18
0
		private void ChildrenItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.CHILDREN, sender, e);
		}
コード例 #19
0
		private void HomeAddressPropChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.HOME_ADDRESS_PROP, sender, e);
		}
コード例 #20
0
		private void CompChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.COMP, sender, e);
		}
 public void TestInitialize()
 {
     args = null;
 }
コード例 #22
0
 private void HousesLazyItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
 {
     NotifyChildPropertyChanged(PROPERTIES.HOUSES_LAZY, sender, e);
 }
 private void Handle_Item_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     args = new ChildPropertyChangedEventArgs<Sample>(e.PropertyName, sender as Sample);
 }
コード例 #24
0
		private void P2ChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e)
		{
			NotifyChildPropertyChanged(PROPERTIES.P2, sender, e);
		}
コード例 #25
0
 private void NotifyChildPropertyChangedEventHandler( string locationName, ChildPropertyChangedEventArgs args )
 {
     this.ChildPropertyChanged( new List<string> { string.Format( "{0}.{1}", locationName, args.Path ) } );
 }