Close() public static method

public static Close ( ) : bool
return bool
Exemplo n.º 1
0
Arquivo: App.cs Projeto: shoff/HTCVW
        public static void Initialize(IAppController appController)
        {
            _app = new App();
            //app.ComponentInitialized += ComponentLoaded;
            _app._game = new Game();
            _app._game.ComponentInitialized += (sender, e) => { DialogBox.Close(); };
            _app._game.Closing += _app.Game_Closing;
            _app.SetInput(appController);

            _initialized = true;
        }
Exemplo n.º 2
0
Arquivo: App.cs Projeto: shoff/HTCVW
        public static void Run(M3DIL.Sources.SourceType fileExtension, string modelFileName)
        {
            DialogBox.Show <WaitBox>("Loading model, please wait", "Loading Model");
            if (!_initialized)
            {
                Initialize(null);
            }
            try
            {
                Model model = Model.Load(fileExtension, modelFileName);
                _app._game.LoadModel(model);

                _app._game.Run(100, 70);
            }
            catch (Exception e)
            {
                DialogBox.Close();
                StringBuilder sb = new StringBuilder();
                GetExceptionList(sb, e);
                MessageBox.Show(sb.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 3
0
 public virtual void Close()
 {
     dialogBox.Close();
 }
Exemplo n.º 4
0
 private void closeDialog()
 {
     m_DialogBox.Close();
 }