Ejemplo n.º 1
0
 private void NewInfo_HorseFactory_Click(object sender, RoutedEventArgs e)
 {
     horseFactoryWindow           = new HorseFactoryWindow();
     horseFactoryWindow.OnAdd    += managementSystem.Library.HorseFactories.Add;
     horseFactoryWindow.OnUpdate += managementSystem.Library.HorseFactories.Update;
     horseFactoryWindow.Show();
 }
Ejemplo n.º 2
0
        private void HorseFactoryTab_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            HorseFactory horseFactory = HorseFactoryGrid.SelectedItem as HorseFactory;

            if (horseFactory == null)
            {
                return;
            }
            horseFactoryWindow           = new HorseFactoryWindow(horseFactory);
            horseFactoryWindow.Title     = string.Format("Horse Factory - Id: {0}, Name: {1}", horseFactory.Id, horseFactory.Name);
            horseFactoryWindow.OnAdd    += managementSystem.Library.HorseFactories.Add;
            horseFactoryWindow.OnUpdate += managementSystem.Library.HorseFactories.Update;
            horseFactoryWindow.Show();
        }