Exemple #1
0
 public override void Init()
 {
     base.Init();
     //绑定一个
     var dataDriver = DataDriveServer.Create("XVCTest");
     var mvc        = MVCBind.Create("XVCTest", new ViewContrl_MVCTest(dataDriver), new View_MVCTest(Transform, dataDriver));
 }
Exemple #2
0
 public override void Init()
 {
     base.Init();
     //绑定一个
     var dataDriven = DataListenerServer.Create("MVCTest");
     //创建一个mvc模式的窗口
     var control = new ViewContrl_MVCTest(dataDriven);
     var view    = new View_MVCTest(Transform, dataDriven);
     var mvc     = MVCBind.Create("MVCTest", control, view);
 }