Example #1
0
        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);
        }
Example #2
0
 public void ApplicationEnd()
 {
     _app.StopTimer();
     _app = null;
     _api = null;
 }