重定义根接口

This commit is contained in:
zengwenjie
2025-09-15 19:16:51 +08:00
parent 7f322aa1f5
commit a6e92b6704
7 changed files with 31 additions and 12 deletions

View File

@@ -10,6 +10,5 @@ namespace Deedy.Activity
{
public void Append(IDeedyElement deedyElement);
public void Remove(IDeedyElement deedyElement);
public void SwapIndex(IDeedyElement element1, IDeedyElement element2);
}
}

View File

@@ -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();
}
}
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Deedy.Activity
{
public abstract class ExecAction
public abstract class ExecAction : DeedyAction
{
protected internal ExecAction() { }
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Deedy.Activity
{
public abstract class FlowAction
public abstract class FlowAction : DeedyAction
{
protected internal FlowAction() { }
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Deedy.Activity
{
public abstract class FuncAction
public abstract class FuncAction : DeedyAction
{
protected internal FuncAction() { }
}

View File

@@ -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();
}
}
}

View File

@@ -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);
}
}