public UserControl ApplicationStart(MoRuntimeAPI runtimeAPI, Guid mainWindowHandle) { _win = mainWindowHandle; _api = runtimeAPI; _app = new moSol(); _api.SetWindowMinimumWidth(_win, 720); _api.SetWindowMinimumHeight(_win, 650); _api.SetWindowWidth(_win, 720); _api.SetWindowHeight(_win, 650); _api.SetWindowAllowScrollbars(_win, false); _api.SetWindowBackground(_win, new SolidColorBrush(Colors.Brown)); _api.SetAllowWindowResize(_win, false); _api.SetAllowWindowPerspective(_win, false); _api.WindowSizeChanged += APIWindowSizeChanged; return(_app); }
public void ApplicationEnd() { _app.StopTimer(); _app = null; _api = null; }