重定义根接口
This commit is contained in:
		@@ -10,6 +10,5 @@ namespace Deedy.Activity
 | 
			
		||||
    {
 | 
			
		||||
        public void Append(IDeedyElement deedyElement);
 | 
			
		||||
        public void Remove(IDeedyElement deedyElement);
 | 
			
		||||
        public void SwapIndex(IDeedyElement element1, IDeedyElement element2);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -15,11 +15,10 @@ namespace Deedy.Activity
 | 
			
		||||
        public string DETitle { get; set; } = "";
 | 
			
		||||
        public string DERemark { get; set; } = "";
 | 
			
		||||
        public string DEIdentify { get; set; } = "";
 | 
			
		||||
        public IDeedyElement? DeedyParent { get; protected internal set; }
 | 
			
		||||
        public IDeedyElement? ParentElement { get; protected internal set; }
 | 
			
		||||
        public IActionViewer? ActionViewer { get; protected internal set; }
 | 
			
		||||
        public DeedyElementCollection Children { get; set; } = new();
 | 
			
		||||
 | 
			
		||||
        public IDeedyElement DeedyRoot => (this.DeedyParent == null) ? this : this.DeedyParent.DeedyRoot;
 | 
			
		||||
        public IDeedyElement RootElement => (this.ParentElement == null) ? this : this.ParentElement.RootElement;
 | 
			
		||||
 | 
			
		||||
        public event PropertyChangedEventHandler? PropertyChanged;
 | 
			
		||||
 | 
			
		||||
@@ -64,5 +63,15 @@ namespace Deedy.Activity
 | 
			
		||||
        {
 | 
			
		||||
            throw new NotImplementedException();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void SwapIndex(IDeedyElement deedyElement)
 | 
			
		||||
        {
 | 
			
		||||
            throw new NotImplementedException();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void ReadyToWorking(Runtime? runtime)
 | 
			
		||||
        {
 | 
			
		||||
            throw new NotImplementedException();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace Deedy.Activity
 | 
			
		||||
{
 | 
			
		||||
    public abstract class ExecAction
 | 
			
		||||
    public abstract class ExecAction : DeedyAction
 | 
			
		||||
    {
 | 
			
		||||
        protected internal ExecAction() { }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace Deedy.Activity
 | 
			
		||||
{
 | 
			
		||||
    public abstract class FlowAction
 | 
			
		||||
    public abstract class FlowAction : DeedyAction
 | 
			
		||||
    {
 | 
			
		||||
        protected internal FlowAction() { }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace Deedy.Activity
 | 
			
		||||
{
 | 
			
		||||
    public abstract class FuncAction
 | 
			
		||||
    public abstract class FuncAction : DeedyAction
 | 
			
		||||
    {
 | 
			
		||||
        protected internal FuncAction() { }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -14,10 +14,9 @@ namespace Deedy.Activity
 | 
			
		||||
        public string DETitle { get; set; } = "";
 | 
			
		||||
        public string DERemark { get; set; } = "";
 | 
			
		||||
        public string DEIdentify { get; set; } = "";
 | 
			
		||||
        public IDeedyElement? DeedyParent { get; protected internal set; }
 | 
			
		||||
        public DeedyElementCollection Children { get; set; } = new();
 | 
			
		||||
        public IDeedyElement? ParentElement { get; protected internal set; }
 | 
			
		||||
 | 
			
		||||
        public IDeedyElement DeedyRoot => (this.DeedyParent == null) ? this : this.DeedyParent.DeedyRoot;
 | 
			
		||||
        public IDeedyElement RootElement => (this.ParentElement == null) ? this : this.ParentElement.RootElement;
 | 
			
		||||
 | 
			
		||||
        public DeedyElementCollection Elements { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
 | 
			
		||||
 | 
			
		||||
@@ -81,5 +80,15 @@ namespace Deedy.Activity
 | 
			
		||||
        {
 | 
			
		||||
            throw new NotImplementedException();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void SwapIndex(IDeedyElement deedyElement)
 | 
			
		||||
        {
 | 
			
		||||
            throw new NotImplementedException();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void ReadyToWorking(Runtime? runtime)
 | 
			
		||||
        {
 | 
			
		||||
            throw new NotImplementedException();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -14,9 +14,11 @@ namespace Deedy.Activity
 | 
			
		||||
        public string DETitle { get; set; }
 | 
			
		||||
        public string DERemark { get; set; }
 | 
			
		||||
        public string DEIdentify { get; set; }
 | 
			
		||||
        public IDeedyElement? DeedyParent { get; }
 | 
			
		||||
        public IDeedyElement DeedyRoot { get; }
 | 
			
		||||
        public IDeedyElement? ParentElement { get; }
 | 
			
		||||
        public IDeedyElement RootElement { get; }
 | 
			
		||||
        public void InsertToFore(IDeedyElement deedyElement);
 | 
			
		||||
        public void InsertAtRear(IDeedyElement deedyElement);
 | 
			
		||||
        public void SwapIndex(IDeedyElement deedyElement);
 | 
			
		||||
        public void ReadyToWorking(Runtime? runtime);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user