Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UpdateWindow = ((GUI.Update)(target));
                return;

            case 2:
                this.ListViewShips = ((System.Windows.Controls.ListView)(target));
                return;

            case 4:
                this.ListViewWeapon = ((System.Windows.Controls.ListView)(target));
                return;

            case 6:
                this.ListViewArmor = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
 private void btn_update_Click(object sender, EventArgs e)
 {
     //Voiture v = new Voiture();
     //v.Annee = 2015;
     //v.Coulour = "red";
     //v.Marque = "sonata";
     //v.TypeV = "Hunday";
     //if (garage.modifierVoiture("223", v))
     //{
     //    MessageBox.Show("Mise à jour réussi");
     //}  
     Update update = new Update();
     update.Show();
 }