2024-11-02 16:48:40 +08:00
|
|
|
|
using Serein.Library;
|
|
|
|
|
|
using System;
|
2024-10-07 22:52:10 +08:00
|
|
|
|
using System.Collections.Generic;
|
2024-10-20 12:10:57 +08:00
|
|
|
|
using System.IO;
|
2024-10-07 22:52:10 +08:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Net462DllTest.Properties
|
|
|
|
|
|
{
|
|
|
|
|
|
/*
|
|
|
|
|
|
理想的项目架构:
|
2024-10-10 20:52:19 +08:00
|
|
|
|
|
|
|
|
|
|
每一种功能拆分为新的项目
|
|
|
|
|
|
|
2024-10-07 22:52:10 +08:00
|
|
|
|
FlowEnv - LoginControl:
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-10 20:52:19 +08:00
|
|
|
|
LoginControl
|
2024-10-07 22:52:10 +08:00
|
|
|
|
↙ ↘
|
2024-10-10 20:52:19 +08:00
|
|
|
|
(View-Interaction) (Node-Interaction)
|
|
|
|
|
|
↓ ↕
|
|
|
|
|
|
View ←→ ViewModel ←→ Trigger ← SingleEnum
|
|
|
|
|
|
↓ ↓ ↖
|
|
|
|
|
|
↓ ↓ ↖
|
|
|
|
|
|
Node →→→ Model → Event(OnDataChanged)
|
2024-10-07 22:52:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
视图驱动触发器,触发器驱动数据。
|
|
|
|
|
|
数据驱动触发器,触发器驱动视图。
|
|
|
|
|
|
|
|
|
|
|
|
所以,这个结构≈事件驱动。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
动态的配置事件触发的原因、过程与结果。
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
2024-10-20 12:10:57 +08:00
|
|
|
|
|
|
|
|
|
|
public class My
|
|
|
|
|
|
{
|
|
|
|
|
|
public void Run()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-10-07 22:52:10 +08:00
|
|
|
|
}
|