예제 #1
0
        public Animalule()
        {
            InitializeComponent();
           // Imagine1.Source = new BitmapImage(new Uri("Game/bear.jpg", UriKind.Relative));

            // Store the current instance
            instance = this;
        }
예제 #2
0
 void tc_GetHistoryPadureCompleted(object sender, ServiceReference1.GetHistoryPadureCompletedEventArgs e)
 {
     Animalule an = new Animalule();
     List<HistoryPadure_Result> lista = new List<HistoryPadure_Result>();
     foreach (var c in e.Result)
     {
         lista.Add(c);
     }
     an.Aranjeaza(lista);
     md.Children.Add(an);
 }
예제 #3
0
        void Padure_MouseEnter(object sender, MouseEventArgs e)
        {
            md.Children.Clear();
            Animalule l = new Animalule();
            Animalule.setRegion("Padure");
            AtributeGlobale.ZonaCurenta = AtributeGlobale.EnumZone.Forest;
            md.Children.Add(l);
        
            l.Aranjeaza(lista);
            ab.Stop();
            ab.Children.Clear();
            DoubleAnimation da = new DoubleAnimation() { From = 0, To = 0.5, Duration = TimeSpan.FromMilliseconds(1) };
            Storyboard.SetTarget(da, Padure);
            Storyboard.SetTargetProperty(da, new PropertyPath(Path.OpacityProperty));
            ab.Children.Add(da);
            Padure.Fill = new SolidColorBrush(Color.FromArgb(0xFF, 0x65, 0x70, 0x74));
            ab.Begin();

        }