MVVM frame work done, under unit test

This commit is contained in:
Nitload
2024-07-25 04:41:24 +08:00
parent 924fe6eef7
commit da75200347
101 changed files with 8435 additions and 847 deletions
@@ -0,0 +1,25 @@
using StgSharp.Controlling.UsrActivity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp
{
public class Control : ViewResponder<ViewMain>
{
public override void CustomizedInitialize(Func<ITrigger, string, Action> keyRegister)
{
}
public override bool ValidateInitializing()
{
throw new NotImplementedException();
}
}
}
@@ -0,0 +1,36 @@
using StgSharp.Graphics;
using StgSharp.Controlling;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StgSharp.Controls;
namespace StgSharp
{
internal class Design : ViewDesigner<ViewMain>
{
DemoButtonGroup group;
public override sealed void CustomizedInitialize()
{
group = new DemoButtonGroup();
}
public override bool ValidateInitializing()
{
return true;
}
}
public class DemoButtonGroup : KeyboardButtonGroup
{
public override sealed void Confirm()
{
return;
}
}
}
@@ -0,0 +1,24 @@
using StgSharp.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp
{
public class Render : ViewRender<ViewMain>
{
public override void CustomizedInitialize()
{
}
public override bool ValidateInitializing()
{
}
}
}
@@ -0,0 +1,40 @@
using StgSharp.Graphics;
using StgSharp.Logic;
using StgSharpDebug.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp
{
public class ViewMain : View
{
public DemoButtonGroup DemoGroup
{
get; set;
}
public override void CustomizedInitialize(ViewModelBase viewModelBinding)
{
Designer = new Design();
Responder = new Control();
Render = new Render();
DemoGroup = new DemoButtonGroup();
}
public override bool TryGetObjectReference(string name, out DataBindingEntry entry)
{
throw new NotImplementedException();
}
internal protected override void Show()
{
throw new NotImplementedException();
}
}
}