コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: tigerss/Grow-Romania
       // List<ServiceReference1.Istoric_Animal_Deces> lista2;
       // void wcf_PreiaDecesCompleted(object sender, ServiceReference3.PreiaDecesCompletedEventArgs e)
       // {
       ////     lista2 = new List<ServiceReference3.Istoric_Animal_Deces>();
       //     foreach (var c in e.Result)
       //     lista2.Add(c);
       // }
      

  
        private void ArrangePage()
        {
            //rezolutia ecranului
            canvas.Width = double.Parse(HtmlPage.Window.Eval("screen.width").ToString());
            canvas.Height = double.Parse(HtmlPage.Window.Eval("screen.height").ToString());
            HtmlDocument d = HtmlPage.Document;
            string c = d.QueryString.Count.ToString() ;
            //canvasu de sus
            btn2.Width = canvas.Width;
            // aranjenz in pagina gridu
            Canvas.SetLeft(LayoutRoot, canvas.Width / 2 - 500);
            Canvas.SetTop(LayoutRoot, 75);
            LoginForm add = new LoginForm(MeniuDreapa,canvas2,maplayer,map);
            
            MeniuSus m = new MeniuSus(btn2, canvas.Width,canvas2);
           
       #region Tranzactii Sergiu

          //  Tranzactii
       //     map.Visibility = Visibility.Collapsed;
        //   canvas2.Children.Clear();
      //      canvas2.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
           //// Forme.t = new Forme.Tranzactii(canvas2);
       //  Forme.MyTranzactii t = new Forme.MyTranzactii(canvas2);
     //    bing_maps.Forme.MyTranzactii t = new bing_maps.Forme.MyTranzactii(canvas2);
            #endregion
        #region History
         //  Thread.Sleep(new TimeSpan(0, 0, 0,5));
          //  stat s = new stat(canvas2);
          //  canvas2.Children.Add(s);
            //History cs = new History();
            //canvas2.Children.Add(s);
            #endregion
            #region Holban
            //BasicHttpBinding bind = new BasicHttpBinding();
            //EndpointAddress endpoint = new EndpointAddress("http://localhost:11201/Service1.svc");
            //bing.testService.Service1Client wcf = new bing.testService.Service1Client(bind, endpoint);
            //wcf.GetAnimalByIDCompleted += new EventHandler<bing.testService.GetAnimalByIDCompletedEventArgs>(wcf_GetAnimalByIDCompleted);
            //wcf.GetTop3IstoricAnimaleForUserXCompleted += new EventHandler<GetTop3IstoricAnimaleForUserXCompletedEventArgs>(wcf_GetTop3IstoricAnimaleForUserXCompleted);
            //try
            //{
            //    wcf.GetAnimalByIDAsync(15);
            //    wcf.GetTop3IstoricAnimaleForUserXAsync(2, 15);
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.Message);
            //}

            #endregion
        }
コード例 #2
0
ファイル: MapLayers.cs プロジェクト: tigerss/Grow-Romania
 void c_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     Canvas z = (Canvas)sender;
     MeniuSus s = new MeniuSus(c);
 }