예제 #1
0
 public MapLayers(Map m,Canvas can,Canvas MeniuDreapta)
 {
    
     bing.ServiceReference1.TranzactiiClient tc = new bing.ServiceReference1.TranzactiiClient(bind, endpoint) ;
     tc.GetProceduraRealCompleted += new EventHandler<bing.ServiceReference1.GetProceduraRealCompletedEventArgs>(tc_GetProceduraRealCompleted);
     tc.GetProceduraRealAsync(1);
     md = MeniuDreapta;
     this.map = m;
     c = can;
     timer.Interval = new TimeSpan(0, 0, 0, 0, 50);
     timer.Tick += new EventHandler(t_Tick);
     Z = zoom;
     Long = longitudine;
     Lat = latitudine;
     mapLayers = this;
 }
예제 #2
0
 void butonlogin_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     GetPass = Passordbox.Password;
     string login = username.Text;
     bIndic.IsBusy = true;
     Meniu.Children.Clear();
     bing.ServiceReference1.TranzactiiClient c = new bing.ServiceReference1.TranzactiiClient(bind,endpoint);
     c.LoginUserCompleted += new EventHandler<bing.ServiceReference1.LoginUserCompletedEventArgs>(c_LoginUserCompleted);
  
     c.LoginUserAsync("test", "testtest");
 }