Exemplo n.º 1
0
 protected virtual void OnEditingFinished(PropertyEditorValueEventArgs e)
 {
     if (this.EditingFinished != null)
     {
         this.EditingFinished(this, e);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnValueChanged(PropertyEditorValueEventArgs e)
 {
     if (this.ValueChanged != null)
     {
         this.ValueChanged(this, e);
     }
 }
Exemplo n.º 3
0
 protected virtual void OnValueChanged(object sender, PropertyEditorValueEventArgs args)
 {
     if (this.ValueChanged != null)
     {
         this.ValueChanged(sender, args);
     }
 }
Exemplo n.º 4
0
        protected override void OnValueChanged(object sender, PropertyEditorValueEventArgs args)
        {
            base.OnValueChanged(sender, args);
            if (this.isInvokingDirectChild) return;

            // Find the direct descendant editor on the path to the changed one
            PropertyEditor directChild = args.Editor;
            while (directChild != null && !this.HasPropertyEditor(directChild))
                directChild = directChild.ParentEditor;
            if (directChild == args.Editor) return;

            // If an editor has changed that was NOT a direct descendant, fire the appropriate notifier events.
            // Always remember: If we don't emit a PropertyChanged event, PrefabLinks won't update their change lists!
            if (directChild != null && directChild != args.Editor && directChild.EditedMember != null)
            {
                this.isInvokingDirectChild = true;
                if (directChild.EditedMember is PropertyInfo)
                    UndoRedoManager.Do(new EditPropertyAction(this.ParentGrid, directChild.EditedMember as PropertyInfo, this.GetValue(), null));
                else if (directChild.EditedMember is FieldInfo)
                    UndoRedoManager.Do(new EditFieldAction(this.ParentGrid, directChild.EditedMember as FieldInfo, this.GetValue(), null));
                this.isInvokingDirectChild = false;
            }
        }
Exemplo n.º 5
0
 protected override void OnEditingFinished(PropertyEditorValueEventArgs e)
 {
     base.OnEditingFinished(e);
     UndoRedoManager.Finish();
 }
		protected virtual void OnEditingFinished(PropertyEditorValueEventArgs e)
		{
			if (this.EditingFinished != null)
				this.EditingFinished(this, e);
		}
		protected virtual void OnValueChanged(PropertyEditorValueEventArgs e)
		{
			if (this.ValueChanged != null)
				this.ValueChanged(this, e);
		}
		private void mainEditor_EditingFinished(object sender, PropertyEditorValueEventArgs e)
		{
			this.OnEditingFinished(e);
		}
		private void mainEditor_ValueChanged(object sender, PropertyEditorValueEventArgs e)
		{
			this.OnValueChanged(e);
		}
		protected virtual void OnValueChanged(object sender, PropertyEditorValueEventArgs args)
		{
			if (this.ValueChanged != null)
				this.ValueChanged(sender, args);
		}
Exemplo n.º 11
0
 private void mainEditor_EditingFinished(object sender, PropertyEditorValueEventArgs e)
 {
     this.OnEditingFinished(e);
 }
Exemplo n.º 12
0
 private void mainEditor_ValueChanged(object sender, PropertyEditorValueEventArgs e)
 {
     this.OnValueChanged(e);
 }