Ejemplo n.º 1
0
        public GameScreen()
        {
            InitializeComponent();

            iBox   = inputBox;
            menBox = menuBox;
            msgBox = messageBox;

            images[LEFT]   = leftImage;
            images[CENTER] = centerImage;
            images[RIGHT]  = rightImage;

            //Thread t = new Thread(new ThreadStart(messageBox.closeDialog));

            //while (!iBox.inputEnd)
            //{
            //Monitor.Wait(iBox.inputEnd);
            //}
        }
Ejemplo n.º 2
0
        public GameScreen()
        {
            InitializeComponent();

            iBox = inputBox;
            menBox = menuBox;
            msgBox = messageBox;

            images[LEFT] = leftImage;
            images[CENTER] = centerImage;
            images[RIGHT] = rightImage;

            //Thread t = new Thread(new ThreadStart(messageBox.closeDialog));

            //while (!iBox.inputEnd)
            //{
            //Monitor.Wait(iBox.inputEnd);
            //}

        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.player = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 2:
                this.background = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.leftImage = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.centerImage = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.rightImage = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.messageBox = ((Iris.Framework.MessageBox)(target));
                return;

            case 7:
                this.inputBox = ((Iris.Framework.InputBox)(target));
                return;

            case 8:
                this.menuBox = ((Iris.Framework.MenuBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.player = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 2:
     this.background = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.leftImage = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.centerImage = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     this.rightImage = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.messageBox = ((Iris.Framework.MessageBox)(target));
     return;
     case 7:
     this.inputBox = ((Iris.Framework.InputBox)(target));
     return;
     case 8:
     this.menuBox = ((Iris.Framework.MenuBox)(target));
     return;
     }
     this._contentLoaded = true;
 }