MVVM rebuild complete
This commit is contained in:
@@ -4,6 +4,7 @@ using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Logic;
|
||||
using StgSharp.Math;
|
||||
using StgSharp.MVVM;
|
||||
|
||||
using StgSharpDebug.Logic;
|
||||
|
||||
@@ -27,8 +28,12 @@ namespace StgSharp
|
||||
StgSharp.InitGL(4, 6);
|
||||
StgSharp.GlobalSetting.VSyncActivated = false;
|
||||
|
||||
ViewPort vp = new ViewPort();
|
||||
|
||||
ViewModelMain mainModel = new ViewModelMain(vp);
|
||||
mainModel.CreateAndBindView<ViewMain>("MainView", (1, 1, 1));
|
||||
|
||||
mainModel.UseViewModel("MainView");
|
||||
|
||||
StgSharp.Terminate();
|
||||
/**/
|
||||
@@ -36,10 +41,10 @@ namespace StgSharp
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message + "\n" + ex.StackTrace);
|
||||
InternalIO.InternalWriteLog(
|
||||
ex.Message + "\n" + ex.StackTrace,
|
||||
LogType.Error);
|
||||
Environment.FailFast(ex.Message + "\n" + ex.StackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user