Example #1
0
        private void btnGuardarTorneo_Click(object sender, RoutedEventArgs e)
        {
            bool bRespuesta = false;

            if (txtNombreTorneo.Text != "")
            {
                if (iIdTorneo > 0)
                {
                    bRespuesta = ModificarTorneo();
                }
                else
                {
                    bRespuesta = AgregarTorneo();
                }

                if (bRespuesta)
                {
                    MainTorneo torneo = new MainTorneo();
                    torneo.Show();
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("Debes de agregar un nombre", "Error");
            }
        }
Example #2
0
        private void mRegresar_Click(object sender, RoutedEventArgs e)
        {
            MainTorneo tor = new MainTorneo();

            tor.Show();
            this.Close();
        }
Example #3
0
        private void btnRegresar_Click(object sender, RoutedEventArgs e)
        {
            MainTorneo main = new MainTorneo();

            main.Show();
            this.Close();
        }
Example #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainTorneos = ((Prop.MainTorneo)(target));
                return;

            case 2:
                this.cmbtorneo = ((System.Windows.Controls.ComboBox)(target));

            #line 20 "..\..\MainTorneo.xaml"
                this.cmbtorneo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\MainTorneo.xaml"
                this.btnAceptarTorneo.Click += new System.Windows.RoutedEventHandler(this.btnAceptarTorneo_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\MainTorneo.xaml"
                this.btnEliminarTorneo.Click += new System.Windows.RoutedEventHandler(this.btnEliminarTorneo_Click);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\MainTorneo.xaml"
                this.btnModificaTorneo.Click += new System.Windows.RoutedEventHandler(this.btnModificaTorneo_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }