Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.titre = ((View.MainWindow)(target));
                return;

            case 2:
                this.boutonLogin = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\Login.xaml"
                this.boutonLogin.Click += new System.Windows.RoutedEventHandler(this.Bouton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.iD = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.password = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.incription = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        private void SetupMainWindow()
        {
            var bootstrapper = new Bootstrapper();

            var container = bootstrapper.Boostrap();

            var viewModel = container.Resolve<MainViewModel>();

            MainWindow = new MainWindow(viewModel, container.Resolve<IEventAggregator>());
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((View.MainWindow)(target));
                return;

            case 2:
                this.slider = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WindowGame = ((View.MainWindow)(target));

            #line 9 "..\..\MainWindow.xaml"
                this.WindowGame.Initialized += new System.EventHandler(this.windowIni);

            #line default
            #line hidden
                return;

            case 2:
                this.btnAplicar = ((System.Windows.Controls.Button)(target));

            #line 337 "..\..\MainWindow.xaml"
                this.btnAplicar.Click += new System.Windows.RoutedEventHandler(this.btnAplicar_click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnLimpar = ((System.Windows.Controls.Button)(target));

            #line 358 "..\..\MainWindow.xaml"
                this.btnLimpar.Click += new System.Windows.RoutedEventHandler(this.LimparClick);

            #line default
            #line hidden
                return;

            case 4:
                this.btn1 = ((System.Windows.Controls.Button)(target));

            #line 374 "..\..\MainWindow.xaml"
                this.btn1.Click += new System.Windows.RoutedEventHandler(this.btn1Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btn2 = ((System.Windows.Controls.Button)(target));

            #line 390 "..\..\MainWindow.xaml"
                this.btn2.Click += new System.Windows.RoutedEventHandler(this.btn2Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn3 = ((System.Windows.Controls.Button)(target));

            #line 406 "..\..\MainWindow.xaml"
                this.btn3.Click += new System.Windows.RoutedEventHandler(this.btn3Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btn4 = ((System.Windows.Controls.Button)(target));

            #line 422 "..\..\MainWindow.xaml"
                this.btn4.Click += new System.Windows.RoutedEventHandler(this.btn4Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btn5 = ((System.Windows.Controls.Button)(target));

            #line 438 "..\..\MainWindow.xaml"
                this.btn5.Click += new System.Windows.RoutedEventHandler(this.btn5Click);

            #line default
            #line hidden
                return;

            case 9:
                this.lblResultado = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.btnRobo = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.nuvem1 = ((Microsoft.Expression.Controls.Callout)(target));
                return;

            case 12:
                this.nuvem2 = ((Microsoft.Expression.Controls.Callout)(target));
                return;

            case 13:
                this.nuvem3 = ((Microsoft.Expression.Controls.Callout)(target));
                return;

            case 14:
                this.txtTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.lblPontos = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (var game = new MainWindow())
     {
         game.Run();
     }
 }
Beispiel #6
0
 public void SetParent(View.MainWindow form)
 {
     refParent = form;
 }