Exemplo n.º 1
0
        /// <summary>
        /// This function is called when the application startup
        /// </summary>
        /// <param name="sender">the application itself</param>
        /// <param name="e">event arguments</param>
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            this.RootVisual = new Page();

            // Graphical module initialization
            this.mainManager = new MainManager(e.InitParams, typeof(ICE.download.WebLoader));
            this.mainManager.ListenKeyPress((Page)RootVisual);

            ((Page)this.RootVisual).LayoutRoot.Children.Add(this.mainManager.GetICEView());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the KeyManager class.
 /// </summary>
 /// <param name="mainManager">the main manager to intercat with</param>
 public KeyManager(MainManager mainManager)
 {
     this.mainManager = mainManager;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the JavaScriptManager class.
 /// </summary>
 /// <param name="mainManager">the main manager</param>
 public JavaScriptManager(MainManager mainManager)
 {
     this.mainManager = mainManager;
     HtmlPage.RegisterScriptableObject("JS2SL_Bridge", this);
 }