// Initializez Tab-urile Achievements & Challenges
        void resetTabs()
        {
            #region Control cu Taburi

            ControlCuColturiRotunde sus = new ControlCuColturiRotunde(LayoutRoot, LayoutRoot.Width - 2, 60, 0, 0, false, 1);
            sus.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            sus.Border(new CornerRadius(0, 0, 0, 0), "#FF696c6e", new Thickness(1), LayoutRoot.Width, 62);

            achievements = new ControlCuColturiRotunde(LayoutRoot, 180, 60, 0, 1, false, 1);
            achievements.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            achievements.AddTextBlock(new TextBlock(), "Achievements", 23, 10, 10, "#FF959906");
            myAchievements = achievements.intoarce();

            challenges = new ControlCuColturiRotunde(LayoutRoot, 180, 60, 190, 1, false, 1);
            challenges.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            challenges.AddTextBlock(new TextBlock(), "Challenges", 23, 25, 10, "#FF959906");
            myChallenges = challenges.intoarce();

            myAchievements.MouseEnter += new MouseEventHandler(myAchievements_MouseEnter);
            myAchievements.MouseLeave += new MouseEventHandler(myAchievements_MouseLeave);
            myAchievements.MouseLeftButtonDown += new MouseButtonEventHandler(myAchievements_MouseLeftButtonDown);
            myChallenges.MouseEnter += new MouseEventHandler(myChallenges_MouseEnter);
            myChallenges.MouseLeave += new MouseEventHandler(myChallenges_MouseLeave);
            myChallenges.MouseLeftButtonDown += new MouseButtonEventHandler(myChallenges_MouseLeftButtonDown);

            #endregion
        }
 public AddCommentControl()
 {
     InitializeComponent();
     ControlCuColturiRotunde canvasforbutton = new ControlCuColturiRotunde(butonCanvas, 70, 34, 0, 0, false, 1);
     canvasforbutton.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
     //canvasforbutton.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 70, 35);
     canvasforbutton.Colturi(10, 10, new Rect(0, 0, 70, 33));
     canvasforbutton.AddTextBlock(new TextBlock(), "Add reply", 14, 0, 5, "#ffffffff");
     camp = canvasforbutton.intoarce();
     camp.MouseLeftButtonDown += new MouseButtonEventHandler(camp_MouseLeftButtonDown);
 }
示例#3
0
        public PaginaUser(BusyIndicator bIndic,List<ServiceReference1.LoginFunction_Result> lista,MapLayers mymap,Map map,Canvas canvas2)
        {
            InitializeComponent();
            this.canvas2 = canvas2;
            this.mymap = mymap;
            this.map = map;
            this.bInidic = bIndic;
            #region Adresa + Nume animal
            ControlCuColturiRotunde adresscur = new ControlCuColturiRotunde(LayoutRoot, 230, 100, 0, 7, true, 1);
            adresscur.Colturi(13, 13, new Rect(0, 0, 230, 100));
            adresscur.Colors("#FFF0F8FF", "#FFF0F8FF", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            //    ControlCuColturiRotunde dd = new ControlCuColturiRotunde(can, 200, 100, 200, 100, false, 1);
            Canvas wrap = new Canvas() { Margin = new Thickness(12, 12, 12, 12), Width = 210, Height = 70 };
            tb1 = new TextBlock() { Text = "You are here: ", Margin = new Thickness(0, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            tb2 = new TextBlock() { Text = "Regiunea Curenta", Margin = new Thickness(tb1.ActualWidth + 1, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            tb3 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb1.ActualWidth + tb2.ActualWidth + 2, 1, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            tb4 = new TextBlock() { Text = "Subregiunea", Margin = new Thickness(tb1.ActualWidth + tb2.ActualWidth + tb3.ActualWidth + 3, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            if (tb4.Margin.Left + tb4.ActualWidth > 210)//trecere urm rand
                tb4.Margin = new Thickness(15, 18, 0, 0);
            tb5 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb4.Margin.Left != 0 ? tb4.ActualWidth + 16 : 15, 18, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            if (tb4.Margin.Left != 15)
                tb5.Margin = new Thickness(15, 18, 0, 0);
            tb6 = new TextBlock() { Text = "Zona Campie/Padure", Margin = new Thickness(tb5.Margin.Left + tb5.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            //TextBlock tb7 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb6.Margin.Left + tb6.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            //TextBlock tb8 = new TextBlock() { Text = "Animals", Margin = new Thickness(tb7.Margin.Left + tb7.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            wrap.Children.Add(tb1); wrap.Children.Add(tb2); wrap.Children.Add(tb3); wrap.Children.Add(tb4); wrap.Children.Add(tb5); wrap.Children.Add(tb6); //wrap.Children.Add(tb7); wrap.Children.Add(tb8);
            LayoutRoot.Children.Add(wrap);

            TextBlock tb9 = new TextBlock() { Text = "Welcome,", Margin = new Thickness(12, 48, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black) };
            TextBlock tb10 = new TextBlock() { Text = lista[0].Nume, Margin = new Thickness(12, 58, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 23, Foreground = new SolidColorBrush(Colors.Black) };
            LayoutRoot.Children.Add(tb9);
            LayoutRoot.Children.Add(tb10);
            #endregion
            ImageSourceConverter c = new ImageSourceConverter();
            image1.Source = (ImageSource)c.ConvertFromString("Game/deer.jpg");
            Donatii.Text = lista[0].NrDonatii.ToString() + " Donations";
            Banidonati.Text = lista[0].BaniDonati.ToString() + " RON donated";
            Rank.Text = "Rank: "+lista[0].Rank.ToString();
            Scor.Text = "Scor: " + lista[0].Scor;
            mymap.lol();
            
            bIndic.IsBusy = false;

            // Alex
            // Evenimente
            tb2.MouseLeftButtonUp += new MouseButtonEventHandler(tb2_MouseLeftButtonUp);

            // Update region
            updateCurrentRegion();

            // Store the current instance
            instance = this;
        }
示例#4
0
   public StiriDesign(List<Stire> stire)
   {
       InitializeComponent();
       Trades = new ControlCuColturiRotunde(LayoutRoot, 160, 60, 0, 1, false, 1);
       Trades.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
       Trades.AddTextBlock(new TextBlock(), "News", 23, 20, 10, "#FF959906");
       MyTrades = Trades.intoarce();
       MyTrades.MouseEnter += new MouseEventHandler(MyTrades_MouseEnter);
      MyTrades.MouseLeave += new MouseEventHandler(MyTrades_MouseLeave);
 //      MyTrades.MouseLeftButtonDown += new MouseButtonEventHandler(MyTrades_MouseLeftButtonDown);
       PagedCollectionView pages=new PagedCollectionView(stire);
       pages.PageSize = 10;
       dataGrid1.ItemsSource = pages;
       dataPager1.Source = pages;
       this.DataContext = stire;
       
   }
 public AddCommentControl(string image,int Tip)
 {
     InitializeComponent();
     ControlCuColturiRotunde canvasforbutton = new ControlCuColturiRotunde(butonCanvas, 70, 34, 0, 0, false, 1);
     canvasforbutton.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
     //canvasforbutton.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 70, 35);
     canvasforbutton.Colturi(10, 10, new Rect(0, 0, 70, 33));
     canvasforbutton.AddTextBlock(new TextBlock(), "Add reply", 14, 0, 5, "#ffffffff");
     camp = canvasforbutton.intoarce();
     camp.MouseLeftButtonDown += new MouseButtonEventHandler(camp_MouseLeftButtonDown);
     if (image != null)
     {
         Uri uri = new Uri(image, UriKind.Relative);
         ImageSource img = new System.Windows.Media.Imaging.BitmapImage(uri);
         userImage.SetValue(Image.SourceProperty, img);
     }
     tip = Tip;
 }
示例#6
0
 public stat(Canvas canvas2,int id)
 {
     this.ID = id;
     canvas2.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
     canvas2.Children.Clear();
     InitializeComponent();
   //  scrollViewer1.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;
     //scrollViewer1.BorderThickness = new Thickness(0);
     this.canvas2 = canvas2;
     ControlCuColturiRotunde sus = new ControlCuColturiRotunde(canvas2, canvas2.Width - 2, 60, 0, 0, false, 1);
     sus.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
     sus.Border(new CornerRadius(0, 0, 0, 0), "#FF696c6e", new Thickness(1), canvas2.Width, 62);
     #region Trades
     Buton = new ControlCuColturiRotunde(canvas2, 160, 60, 0, 1, false, 1);
     Buton.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
     Buton.AddTextBlock(new TextBlock(), "History", 23, 20, 10, "#FF959906");
     MyTrades = Buton.intoarce();
     MyTrades.MouseEnter += new MouseEventHandler(MyTrades_MouseEnter);
     MyTrades.MouseLeave += new MouseEventHandler(MyTrades_MouseLeave);
     MyTrades.MouseLeftButtonDown += new MouseButtonEventHandler(MyTrades_MouseLeftButtonDown);
     #endregion
     #region Cbuy
     CBuy = new ControlCuColturiRotunde(canvas2, 150, 60, 162, 1, false, 1);
     CBuy.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
     CBuy.AddTextBlock(new TextBlock(), "Overall", 23, 20, 10, "#FF959906");
     Buy = CBuy.intoarce();
     Buy.MouseEnter += new MouseEventHandler(Buy_MouseEnter);
     Buy.MouseLeave += new MouseEventHandler(Buy_MouseLeave);
     Buy.MouseLeftButtonDown += new MouseButtonEventHandler(Buy_MouseLeftButtonDown);
     #endregion
     #region
   
     CSell = new ControlCuColturiRotunde(canvas2, 150, 60, 314, 1, false, 1);
     CSell.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
     CSell.AddTextBlock(new TextBlock(), "Statistics", 23, 20, 10, "#FF959906");
     Sell = CSell.intoarce();
     Sell.MouseEnter += new MouseEventHandler(Sell_MouseEnter);
     Sell.MouseLeave += new MouseEventHandler(Sell_MouseLeave);
     Sell.MouseLeftButtonDown += new MouseButtonEventHandler(Sell_MouseLeftButtonDown);
     #endregion
     
     
            }
        public DonatiiDetalii()
        {
            InitializeComponent();
            //butonCanvas.Children.Clear();
            //ControlCuColturiRotunde Donate = new ControlCuColturiRotunde(butonCanvas, 40, 20, 5, 8, false, 1);
            //Donate.Colors("#ff8f9305", "#ff8f9305", new Point(0.5, 1), new Point(0.5, 0), null);
            //Donate.Colturi(10, 10, new Rect(0, 0, 87, 39));
            //Donate.AddTextBlock(new TextBlock(), "+ Donate", 20, 10, 10, "#FFFFFFFF");

            ControlCuColturiRotunde canvasforbutton = new ControlCuColturiRotunde(butonCanvas, 206, 39, 0, 0, false, 1);
            canvasforbutton.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
            canvasforbutton.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 208, 40);
            canvasforbutton.Colturi(10, 10, new Rect(0, 0, 206, 38));
            canvasforbutton.AddTextBlock(new TextBlock(), "Log in", 17, 90, 5, "#ffe0e1c0");
            Donatii = canvasforbutton.intoarce();

            Line L = new Line();
            Linie L1 = new Linie(1, 1, 100, 1, "#FFFFFFFF", 1, lineCanvas, L);
            lineCanvas.Children.Add(L);
           // butonCanvas.Children.Add(Donatii);
        }
示例#8
0
        public ApasaDonatii(Canvas canvas)
        {

            ch = canvas;
            ch.Children.Clear();
            Line l1 = new Line();
            Line l2 = new Line();
            Line l3 = new Line();
            Line l4 = new Line();
            //  double lung = ch.MaxHeight;
            // MessageBox.Show(lung.ToString());
            Linie lsus = new Linie(0, 0, ch.Width, 0, "#FF8b8e8f", 2.5, ch, l1);
            Linie lstanga = new Linie(0, 0, 0, ch.Height, "#FF8b8e8f", 2.5, ch, l2);
            Linie ljos = new Linie(0, ch.Height, ch.Width, ch.Height, "#FF8b8e8f", 2.5, ch, l3);
            Linie ldreapta = new Linie(ch.Width, 0, ch.Width, ch.Height, "#FF8b8e8f", 2.5, ch, l4);

            ControlCuColturiRotunde sus = new ControlCuColturiRotunde(ch, ch.Width - 2, 60, 0, 0, false, 1);
            sus.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            sus.Border(new CornerRadius(0, 0, 0, 0), "#FF696c6e", new Thickness(1), ch.Width, 62);

            #region Donations
            Donations = new ControlCuColturiRotunde(ch, 190, 60, 0, 1, false, 1);
            Donations.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            Donations.AddTextBlock(new TextBlock(), "My Donations", 23, 20, 10, "#FF959906");
            MyDonations = Donations.intoarce();
            MyDonations.MouseEnter += new MouseEventHandler(MyDonations_MouseEnter);
            MyDonations.MouseLeave += new MouseEventHandler(MyDonations_MouseLeave);
            MyDonations.MouseLeftButtonDown += new MouseButtonEventHandler(MyDonations_MouseLeftButtonDown);
            #endregion

            #region CCampaigns
            CCampaigns = new ControlCuColturiRotunde(ch, 240, 60, 192, 1, false, 1);
            CCampaigns.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            CCampaigns.AddTextBlock(new TextBlock(), "Active Campaigns", 23, 20, 10, "#FF959906");
            Campaigns = CCampaigns.intoarce();
            Campaigns.MouseEnter += new MouseEventHandler(Campaigns_MouseEnter);
            Campaigns.MouseLeave += new MouseEventHandler(Campaigns_MouseLeave);
            Campaigns.MouseLeftButtonDown += new MouseButtonEventHandler(Campaigns_MouseLeftButtonDown);
            #endregion
        }
示例#9
0
        public campanii(string needs,string region, string name,int id,float total, string descriere, String[] Img)
        {
           
            InitializeComponent();
            NeedsBlock.Text = needs;
            totalMoneyTextBlock.Text = total.ToString();
            regiuneTextBlock.Text = region;
            numeCampanieTextBlock.Text = name;
            this.id = id;
            S = Img;
            textDescriere = descriere;
            Line L = new Line();
            Linie L1 = new Linie(1, 1, linieCanvas.Width, 1, "#FF717577", 1, linieCanvas, L);

            ControlCuColturiRotunde canvasforbutton = new ControlCuColturiRotunde(butonCanvas, 70, 34, 0, 0, false, 1);
            canvasforbutton.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
            //canvasforbutton.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 70, 35);
            canvasforbutton.Colturi(10, 10, new Rect(0, 0, 70, 33));
            canvasforbutton.AddTextBlock(new TextBlock(), "+ Donate", 14, 0, 5, "#ffffffff");
            camp = canvasforbutton.intoarce();
            camp.Visibility = Visibility.Collapsed;
        }
示例#10
0
        public Register(Canvas can, string regiune)
        {
            CanPrincipal = can;
            AtributeGlobale.UserIsRegistering = true;
            //---
            regiune_global = regiune;
            RegisterMeniu = new Canvas() { Background = new SolidColorBrush(Colors.Transparent), Margin = new Thickness(436, 10, 0, 0), Width = 357, Height = 500, Opacity = 1, Visibility = Visibility.Collapsed };
            can.Children.Add(RegisterMeniu);
            TextBlock tb1 = new TextBlock() { Text = "Welcome to "+regiune, FontFamily = new FontFamily("Tahoma"), FontSize = 22, FontWeight=FontWeights.SemiBold, Foreground = new SolidColorBrush(Colors.White) };
            tb1.Margin = new Thickness((RegisterMeniu.ActualWidth - tb1.ActualWidth) / 2, 25, 10, 10);
            RegisterMeniu.Children.Add(tb1);

            double left = (RegisterMeniu.ActualWidth - 206) / 2;
            double left2 = (RegisterMeniu.ActualWidth - 250) / 2;
            #region First name
            b1 = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 90, true, 0.43);
            ControlCuColturiRotunde t1 = new ControlCuColturiRotunde(RegisterMeniu, 90, 39, left, 90, true, 1) { Background = new SolidColorBrush(Colors.Transparent)};
            b1.Opacity = 0.43;
            firstname  = new TextBox();
            b1.Colors("#FF9bc7d1", "#FFd5e4e7", new Point(0.5, 1), new Point(0.5, 0), null);
            b1.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b1.Colturi(10, 10, new Rect(0, 0, 206, 38));
            t1.AddTextBlock(new TextBlock(), "First name:", 15, 5, 10, null);
            b1.AddTextBox(firstname, "", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", null, true, 95, 5);
            #endregion
            #region Last name
            b2 = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 135, true, 0.43);
            ControlCuColturiRotunde t2 = new ControlCuColturiRotunde(RegisterMeniu, 90, 39, left, 135, true, 1) { Background = new SolidColorBrush(Colors.Transparent) };
            b2.Opacity = 0.43;
            lastname = new TextBox();
            b2.Colors("#FF9bc7d1", "#FFd5e4e7", new Point(0.5, 1), new Point(0.5, 0), null);
            b2.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b2.Colturi(10, 10, new Rect(0, 0, 206, 38));
            t2.AddTextBlock(new TextBlock(), "Last name:", 15, 5, 10, null);
            b2.AddTextBox(lastname, "", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", null, true, 95, 5);
            #endregion
            #region Username
            b3 = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 180, true, 0.43);
            ControlCuColturiRotunde t3 = new ControlCuColturiRotunde(RegisterMeniu, 90, 39, left, 180, true, 1) { Background = new SolidColorBrush(Colors.Transparent) };
            b3.Opacity = 0.43;
            username = new TextBox();
            b3.Colors("#FF9bc7d1", "#FFd5e4e7", new Point(0.5, 1), new Point(0.5, 0), null);
            b3.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b3.Colturi(10, 10, new Rect(0, 0, 206, 38));
            t3.AddTextBlock(new TextBlock(), "Username:"******"", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", null, true, 95, 5);
            #endregion
            #region Password
            b4 = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 225, true, 0.43);
            ControlCuColturiRotunde t4 = new ControlCuColturiRotunde(RegisterMeniu, 90, 39, left, 225, true, 1) { Background = new SolidColorBrush(Colors.Transparent) };
            b4.Opacity = 0.43;
            pass = new PasswordBox();
            b4.Colors("#FF9bc7d1", "#FFd5e4e7", new Point(0.5, 1), new Point(0.5, 0), null);
            b4.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b4.Colturi(10, 10, new Rect(0, 0, 206, 38));
            t4.AddTextBlock(new TextBlock(), "Password:"******"", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", "#FFBE4141", true, 95, 5);
            #endregion
            #region PasswordRetype
            b5 = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 270, true, 0.43);
            ControlCuColturiRotunde t5 = new ControlCuColturiRotunde(RegisterMeniu, 90, 39, left, 270, true, 1) { Background = new SolidColorBrush(Colors.Transparent) };
            b5.Opacity = 0.43;
            passre = new PasswordBox();
            b5.Colors("#FF9bc7d1", "#FFd5e4e7", new Point(0.5, 1), new Point(0.5, 0), null);
            b5.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b5.Colturi(10, 10, new Rect(0, 0, 206, 38));
            t5.AddTextBlock(new TextBlock(), "Retype:", 15, 5, 10, null);
            b5.AddPasswordTextBox(passre, "", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", "#FFBE4141", true, 95, 5);
            #endregion
            #region Mail
            b6 = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 315, true, 0.43);
            ControlCuColturiRotunde t6 = new ControlCuColturiRotunde(RegisterMeniu, 90, 39, left, 315, true, 1) { Background = new SolidColorBrush(Colors.Transparent) };
            b6.Opacity = 0.43;
            mail = new TextBox();
            b6.Colors("#FF9bc7d1", "#FFd5e4e7", new Point(0.5, 1), new Point(0.5, 0), null);
            b6.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b6.Colturi(10, 10, new Rect(0, 0, 206, 38));
            t6.AddTextBlock(new TextBlock(), "E-mail:", 15, 5, 10, null);
            b6.AddTextBox(mail, "", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", null, true, 95, 5);
            #endregion
            #region Registerbutton

            canvasforbutton = new ControlCuColturiRotunde(RegisterMeniu, 206, 39, left, 360, false, 1);
            canvasforbutton.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
            canvasforbutton.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 208, 40);
            canvasforbutton.Colturi(10, 10, new Rect(0, 0, 206, 38));
            canvasforbutton.AddTextBlock(new TextBlock(), "Register", 17, 68, 5, "#ffe0e1c0");
            Canvas butonlogin = canvasforbutton.intoarce();
            butonlogin.Cursor = Cursors.Hand;
            butonlogin.MouseEnter += new MouseEventHandler(butonlogin_MouseEnter);
            butonlogin.MouseLeave += new MouseEventHandler(butonlogin_MouseLeave);
            butonlogin.MouseLeftButtonDown += new MouseButtonEventHandler(butonlogin_MouseLeftButtonDown);
            #endregion
            #region Error
            err = new Canvas()
            {
                Background = new SolidColorBrush(Color.FromArgb(0xFF, 0xcc, 0xdf, 0xf5)),
                Opacity = .43,
                Width = 250,
                Height = 70,
                Clip = new RectangleGeometry()
                {
                    RadiusX = 10,
                    RadiusY = 10,
                    Rect = new Rect(0, 0, 250, 70)
                },
                Margin = new Thickness(left2, 420, 3, 10),
                Visibility = Visibility.Collapsed
            };
            errtrans = new Canvas() { Background = new SolidColorBrush(Colors.Transparent), Width = 250, Height = 70, Margin = new Thickness(left2, 420, 3, 10),Visibility = Visibility.Collapsed };
            Image img2 = new Image() { Source = new BitmapImage(new Uri("DesignImages/triunghi.png", UriKind.Relative)), Width = 26, Height = 26, Opacity = 1, OpacityMask = new SolidColorBrush(Colors.Black), Margin = new Thickness(10, 4, 0, 0) };
            TextBlock errtext = new TextBlock() { Text = "Error", FontFamily = new FontFamily("tahoma"), FontSize = 18, FontWeight = FontWeights.Bold, Margin = new Thickness(43, 6, 0, 0) };
            errrortext = new TextBlock() { Text = "", FontFamily = new FontFamily("tahoma"), FontSize = 12, Margin = new Thickness(20, 34, 0, 0) };
            errtrans.Children.Add(img2); errtrans.Children.Add(errtext); errtrans.Children.Add(errrortext);
            RegisterMeniu.Children.Add(err);
            RegisterMeniu.Children.Add(errtrans);
            #endregion
            #region Avionas catre alta zona
            /*ret = new Canvas()
            {
                Background = new SolidColorBrush(Color.FromArgb(0xFF, 0xcc, 0xdf, 0xf5)),
                Opacity = .47,
                Width = 200,
                Height = 50,
                Clip = new RectangleGeometry()
                {
                    RadiusX = 10,
                    RadiusY = 10,
                    Rect = new Rect(0, 0, 250, 40)
                },
                Margin=new Thickness(555,5,3,10),
                Cursor=Cursors.Hand
            };
            ret.MouseLeftButtonDown += new MouseButtonEventHandler(ret_MouseLeftButtonDown);
            Image img = new Image() { Source = new BitmapImage(new Uri("DesignImages/avion.png", UriKind.Relative)), Width = 50, Height = 26, Opacity=1, OpacityMask=new SolidColorBrush(Colors.Black) };
            ret.Children.Add(img);
            Canvas.SetLeft(img, 5);
            Canvas.SetTop(img, 7);
            RegisterMeniu.Children.Add(ret);
            TextBlock text = new TextBlock() { Text = "Another Region", FontSize = 20, Margin = new Thickness(56, 7, 0, 0), FontFamily = new FontFamily("Tahoma") };
            ret.Children.Add(text);*/
            #endregion
            timmer = new DispatcherTimer() { Interval = new TimeSpan(0, 0, 0, 0, 200) };
            timmer.Tick += new EventHandler(timmer_Tick);

            #region Choose your region
            tbinit = new TextBlock() { Text = "Choose your region", FontFamily = new FontFamily("Tahoma"), FontSize = 22, FontWeight = FontWeights.SemiBold, Foreground = new SolidColorBrush(Colors.White), Margin = new Thickness(508, 50, 0, 0) };
            CanPrincipal.Children.Add(tbinit);
            RegionChooserTimmer = new DispatcherTimer() { Interval = new TimeSpan(0, 0, 0, 0, 100) };
            RegionChooserTimmer.Tick += new EventHandler(RegionChooserTimmer_Tick);
            RegionChooserTimmer.Start();
            #endregion
        }
示例#11
0
        public MeniuPlanta(Canvas can, string Regiune, string Subregiune, string Locatie, List<getPlantHistory_Result> lista)
        {
            canvas = can;
            this.listPlantHistory = lista;
            canvas.Children.Clear();

            #region Adresa + Nume animal
            ControlCuColturiRotunde adresscur = new ControlCuColturiRotunde(can, 230, 74, 0, 7, true, 1);
            adresscur.Colturi(13, 13, new Rect(0, 0, 230, 74));
            adresscur.Colors("#FFF0F8FF", "#FFF0F8FF", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            //    ControlCuColturiRotunde dd = new ControlCuColturiRotunde(can, 200, 100, 200, 100, false, 1);
            Canvas wrap = new Canvas() { Margin = new Thickness(12, 12, 12, 12), Width = 210, Height = 60 };
            TextBlock tb1 = new TextBlock() { Text = "You are here: ", Margin = new Thickness(0, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            TextBlock tb2 = new TextBlock() { Text = Regiune, Margin = new Thickness(tb1.ActualWidth + 1, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            TextBlock tb3 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb1.ActualWidth + tb2.ActualWidth + 2, 1, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            TextBlock tb4 = new TextBlock() { Text = Subregiune, Margin = new Thickness(tb1.ActualWidth + tb2.ActualWidth + tb3.ActualWidth + 3, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            if (tb4.Margin.Left + tb4.ActualWidth > 210)//trecere urm rand
                tb4.Margin = new Thickness(15, 18, 0, 0);
            TextBlock tb5 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb4.Margin.Left != 0 ? tb4.ActualWidth + 16 : 15, 18, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            if (tb4.Margin.Left != 15)
                tb5.Margin = new Thickness(15, 18, 0, 0);
            TextBlock tb6 = new TextBlock() { Text = Animalule.getRegion(), Margin = new Thickness(tb5.Margin.Left + tb5.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            TextBlock tb7 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb6.Margin.Left + tb6.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            TextBlock tb8 = new TextBlock() { Text = "Plante", Margin = new Thickness(tb7.Margin.Left + tb7.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            wrap.Children.Add(tb1); wrap.Children.Add(tb2); wrap.Children.Add(tb3); wrap.Children.Add(tb4); wrap.Children.Add(tb5); wrap.Children.Add(tb6); wrap.Children.Add(tb7); wrap.Children.Add(tb8);
            can.Children.Add(wrap);

            TextBlock tb9 = new TextBlock() { Text = listPlantHistory[0].Nume, Margin = new Thickness(12, 48, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 23, Foreground = new SolidColorBrush(Colors.Black) };
            can.Children.Add(tb9);

            #endregion

            #region Descriere + Poze
            ControlCuColturiRotunde descriere = new ControlCuColturiRotunde(can, 230, 415, 0, 97, true, 1);
            descriere.Colturi(13, 13, new Rect(0, 0, 230, 415));
            //descriere.Colors("#FFF0F8FF", "#FFF0F8FF", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            pan = new Canvas() { Margin = new Thickness(0, 80, 0, 0) };
            can.Children.Add(pan);

            TextBlock tb10 = new TextBlock() { Text = "Description", Margin = new Thickness(10, 5, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 22, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb10);

            ControlCuColturiRotunde pic1 = new ControlCuColturiRotunde(pan, 66, 66, 8, 36, false, 1);
            pic1.Colors("#FF6BB5DB", "#FF6BB5DB", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            pic1.Colturi(10, 10, new Rect(0, 0, 66, 66));
            ControlCuColturiRotunde p1 = new ControlCuColturiRotunde(pan, 60, 60, 11, 39, true, 1);
            p1.Colturi(10, 10, new Rect(0, 0, 60, 60));
            p1.Background = new SolidColorBrush(Colors.Transparent);
            Image img1;
            if (listPlantHistory[0].Imagine1 != null)
            {
                img1 = new Image() { Source = new BitmapImage(new Uri(lista[0].Imagine1, UriKind.Relative)), Width = 60, Height = 60, Margin = new Thickness(0, 0, 0, 0) };
                Canvas can1 = new Canvas(); can1 = p1.intoarce(); can1.Children.Add(img1);
                pic1.Children.Add(p1);
            }

            ControlCuColturiRotunde pic2 = new ControlCuColturiRotunde(pan, 66, 66, 83, 36, false, 1);
            pic2.Colors("#FF6BB5DB", "#FF6BB5DB", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            pic2.Colturi(10, 10, new Rect(0, 0, 66, 66));
            ControlCuColturiRotunde p2 = new ControlCuColturiRotunde(pan, 60, 60, 86, 39, true, 1);
            p2.Colturi(10, 10, new Rect(0, 0, 60, 60));
            p2.Background = new SolidColorBrush(Colors.Transparent);
            Image img2;
            if (listPlantHistory[0].Imagine2 != null)
            {
                img2 = new Image() { Source = new BitmapImage(new Uri(lista[0].Imagine2, UriKind.Relative)), Width = 60, Height = 60, Margin = new Thickness(0, 0, 0, 0) };
                Canvas can2 = new Canvas(); can2 = p2.intoarce(); can2.Children.Add(img2);
                pic2.Children.Add(p2);
            }

            ControlCuColturiRotunde pic3 = new ControlCuColturiRotunde(pan, 66, 66, 158, 36, false, 1);
            pic3.Colors("#FF6BB5DB", "#FF6BB5DB", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            pic3.Colturi(10, 10, new Rect(0, 0, 66, 66));
            ControlCuColturiRotunde p3 = new ControlCuColturiRotunde(pan, 60, 60, 161, 39, true, 1);
            p3.Colturi(10, 10, new Rect(0, 0, 60, 60));
            p3.Background = new SolidColorBrush(Colors.Transparent);
            Image img3;
            if (listPlantHistory[0].Imagine3 != null)
            {
                img3 = new Image() { Source = new BitmapImage(new Uri(lista[0].Imagine3, UriKind.Relative)), Width = 60, Height = 60, Margin = new Thickness(0, 0, 0, 0) };
                Canvas can3 = new Canvas(); can3 = p3.intoarce(); can3.Children.Add(img3);
                pic3.Children.Add(p3);
            }

            //max 80-85 caractere
            TextBlock desc1 = new TextBlock() { Text = listPlantHistory[0].Descriere.Length < 80 ? listPlantHistory[0].Descriere : listPlantHistory[0].Descriere.Substring(0, 80) + "...", Margin = new Thickness(8, 110, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, TextTrimming = TextTrimming.WordEllipsis, Width = 218, Height = 300 };
            TextBlock more1 = new TextBlock() { Text = "+ more info", Margin = new Thickness(150, 144, 12, 10), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Color.FromArgb(255, 139, 146, 5)), Cursor = Cursors.Hand };
            more1.MouseEnter += new MouseEventHandler(more1_MouseEnter);
            more1.MouseLeave += new MouseEventHandler(more1_MouseLeave);
            more1.MouseLeftButtonDown += new MouseButtonEventHandler(more1_MouseLeftButtonDown);
            pan.Children.Add(desc1);
            pan.Children.Add(more1);
            #endregion

            #region Life cycle
            Line l1 = new Line() { X1 = 8, X2 = 226, Y1 = 174, Y2 = 174, Stroke = new SolidColorBrush(Colors.White), StrokeThickness = 1 };
            pan.Children.Add(l1);

            TextBlock tb11 = new TextBlock() { Text = "Life cycle", Margin = new Thickness(10, 178, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 22, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb11);
            TextBlock tb12 = new TextBlock() { Text = "Planting Season: ", Margin = new Thickness(12, 208, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 15, Foreground = new SolidColorBrush(Color.FromArgb(255, 33, 124, 170)) };
            pan.Children.Add(tb12);
            TextBlock tb13 = new TextBlock() { Text = String.Format("{0:MMM}", listPlantHistory[0].Data) + " - " + String.Format("{0:MMM}", listPlantHistory[0].Data), Margin = new Thickness(140, 208, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb13);
            TextBlock tb14 = new TextBlock() { Text = "Harvesting Season: ", Margin = new Thickness(12, 226, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 15, Foreground = new SolidColorBrush(Color.FromArgb(255, 33, 124, 170)) };
            pan.Children.Add(tb14);
            TextBlock tb15 = new TextBlock() { Text = String.Format("{0:MMM}", listPlantHistory[0].Data) + " - " + String.Format("{0:MMM}", listPlantHistory[0].Data), Margin = new Thickness(140, 226, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb15);
            TextBlock tb16 = new TextBlock() { Text = "Oxygen Production: ", Margin = new Thickness(12, 244, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 15, Foreground = new SolidColorBrush(Color.FromArgb(255, 33, 124, 170)) };
            pan.Children.Add(tb16);
            TextBlock tb17 = new TextBlock() { Text = "-", Margin = new Thickness(140, 244, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb17);
            TextBlock tb18 = new TextBlock() { Text = "Crops per year: ", Margin = new Thickness(12, 262, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 15, Foreground = new SolidColorBrush(Color.FromArgb(255, 33, 124, 170)) };
            pan.Children.Add(tb18);
            TextBlock tb19 = new TextBlock() { Text = listPlantHistory[0].Numar.ToString(), Margin = new Thickness(140, 262, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb19);
            #endregion
            //string istoric1 = "The Breedin Season began";
            //string istoric2 = "6 [b]Cocosi de Munte[/b] were eaten by 7 [b]Wolves[/b] and 2 [b]Cows[/b]";
            //string istoric3 = "The spontaneous fire killed 4 [b]Cocosi de munte[/b]";

            #region History

            Line l2 = new Line() { X1 = 8, X2 = 226, Y1 = 290, Y2 = 290, Stroke = new SolidColorBrush(Colors.White), StrokeThickness = 1 };
            pan.Children.Add(l2);
            TextBlock tb20 = new TextBlock() { Text = "History", Margin = new Thickness(10, 292, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 22, Foreground = new SolidColorBrush(Colors.White) };
            pan.Children.Add(tb20);
            if (lista.Count > 0)
            {
                TextBlock ist1 = new TextBlock() { Text = GetNormal(listPlantHistory[0].Description), Margin = new Thickness(12, 322, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, Width = 214, Height = 34 };
                Rectangle r1 = new Rectangle() { Fill = new SolidColorBrush(Color.FromArgb(255, 26, 28, 30)), Width = 218, Height = 36, Margin = new Thickness(8, 322, 12, 12) };
                r1.Height = ist1.ActualHeight + 2;
                pan.Children.Add(r1); pan.Children.Add(ist1);
                AdaugaLinkuri(ref pan, lista[0].Nume, ist1.Margin.Left, ist1.Margin.Top);

                if (lista.Count > 1)
                {
                    TextBlock ist2 = new TextBlock() { Text = GetNormal(listPlantHistory[1].Description), Margin = new Thickness(12, 322 + ist1.ActualHeight + 2, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, Width = 214, Height = 34 };
                    Rectangle r2 = new Rectangle() { Fill = new SolidColorBrush(Colors.Transparent), Width = 218, Height = 36, Margin = new Thickness(8, 322 + ist1.ActualHeight + 2, 12, 12) };
                    r2.Height = ist2.ActualHeight + 2;
                    pan.Children.Add(r2); pan.Children.Add(ist2);
                    AdaugaLinkuri(ref pan, lista[0].Nume, ist2.Margin.Left, ist2.Margin.Top);


                    if (lista.Count > 2)
                    {
                        TextBlock ist3 = new TextBlock() { Text = GetNormal(listPlantHistory[2].Description), Margin = new Thickness(12, 322 + ist1.ActualHeight + ist2.ActualHeight + 4, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, Width = 214, Height = 34 };
                        Rectangle r3 = new Rectangle() { Fill = new SolidColorBrush(Color.FromArgb(255, 26, 28, 30)), Width = 218, Height = 36, Margin = new Thickness(8, 322 + ist1.ActualHeight + ist2.ActualHeight + 4, 12, 12) };
                        r3.Height = ist3.ActualHeight + 2;
                        pan.Children.Add(r3); pan.Children.Add(ist3);
                        AdaugaLinkuri(ref pan, lista[2].Nume, ist3.Margin.Left, ist3.Margin.Top);


                        if (lista.Count > 3)
                        {
                            TextBlock more2 = new TextBlock() { Text = "+ more info", Margin = new Thickness(150, 322 + ist1.ActualHeight + ist2.ActualHeight + ist3.ActualHeight + 6, 12, 10), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Color.FromArgb(255, 139, 146, 5)), Cursor = Cursors.Hand };
                            more2.MouseEnter += new MouseEventHandler(more1_MouseEnter);
                            more2.MouseLeave += new MouseEventHandler(more1_MouseLeave);
                            more2.MouseLeftButtonDown += new MouseButtonEventHandler(more2_MouseLeftButtonDown);
                            pan.Children.Add(more2);
                        }
                    }
                }
            }
            #endregion
        }
示例#12
0
        void addPicture(Canvas canvas, string imagine, double left, double top)
        {
            //ControlCuColturiRotunde pic1 = new ControlCuColturiRotunde(canvas, 66, 66, left, top, false, 1);
            //pic1.Colors("#FF6BB5DB", "#FF6BB5DB", new Point(0.5, 1), new Point(0.5, 0), 0.3);
            //pic1.Colturi(10, 10, new Rect(0, 0, 66, 66));

            ControlCuColturiRotunde p1 = new ControlCuColturiRotunde(canvas, 60, 60, left + 3, top + 3, true, 1);
            p1.Colturi(10, 10, new Rect(0, 0, 60, 60));
            p1.Background = new SolidColorBrush(Colors.Transparent);

            Image img = new Image() { Source = new BitmapImage(new Uri(imagine, UriKind.Relative)), Width = 50, Height = 50, Margin = new Thickness(0, 0, 0, 0) };
            Canvas can1 = new Canvas(); can1 = p1.intoarce(); can1.Children.Add(img);
            //pic1.Children.Add(p1);
        }
示例#13
0
        // End Alex

        public LoginForm(Canvas can,Canvas canvas2,MapLayers map,Map mapmare)
         {
            Uri httpAddress = new Uri("http://localhost:11201/Tranzactii.svc");
           // System.ServiceModel.ServiceHost
             mymap = map;
             this.mapMare = mapmare;
            bIndic.Width = 152;
            bIndic.Height = 56;
            this.canvas2=canvas2;
            canvas2.Children.Add(bIndic);
            bIndic.IsBusy=false;
            Canvas.SetLeft(bIndic, canvas2.Width / 2 -78);
            Canvas.SetTop(bIndic, canvas2.Height / 2);
                
            #region Info+Welcome user
            ControlCuColturiRotunde iws = new ControlCuColturiRotunde(can, 205, 200, 0, 10, true, 1);
            iws.AddTextBlockMultiple(new TextBlock()
                                      , 6
                                      , new string[] { " Want to do something for your country?", "GrowRomania is a new game where you", "can grow forest and rise animals in any ", "region. Wild animals ,domestic animals", "and everthing.Join now and play.", "See how to play ..." }
                                      , new string[] { "#FFFFFFFF" }
                                      , new int[] { 11 });
            howto = new ControlCuColturiRotunde(can, 100, 25, 120, 110, true, 1);
            howto.Colors("#FF03132d", "#FF03132d", new Point(0.5, 1), new Point(0.5, 0), 1);
            howto.Colturi(10, 10, new Rect(0, 0, 100, 25));
            howtobutton = howto.intoarce();
            howtobutton.MouseEnter += new MouseEventHandler(howtobutton_MouseEnter);
            howtobutton.MouseLeave += new MouseEventHandler(howtobutton_MouseLeave);
            howto.AddTextBlock(new TextBlock(), " + more info", 12, 5, 4, "#FF8b9205");
            howto.Cursor = Cursors.Hand;
            iws.AddTextBlock(new TextBlock(), "Welcome, Guest!", 20, 0, 190, "#FF8b9205");


            #endregion
            #region Username
            ControlCuColturiRotunde b = new ControlCuColturiRotunde(can, 206, 39, 0, 230, false, 1);
            username = new TextBox();
            b.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
            b.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            b.Colturi(10, 10, new Rect(0, 0, 206, 38));
            b.AddTextBlock(new TextBlock(), "Username:"******"", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", null, true, 95, 5);
            #endregion
            #region Passward
            //adaug canvas pt Password
            ControlCuColturiRotunde c = new ControlCuColturiRotunde(can, 206, 39, 0, 274, false, 1);
            Passordbox = new PasswordBox();
            Passordbox.PasswordChanged += new RoutedEventHandler(pb_PasswordChanged);


            c.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
            c.Border(new CornerRadius(9, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
            c.Colturi(10, 10, new Rect(0, 0, 206, 38));
            c.AddTextBlock(new TextBlock(), "Password:"******"", 100, 30, 0, 14, "#FF992929", "#FF9F1C1C", "#FF581818", "#FFBE4141", null, true, 95, 5);
            #endregion
            #region Loginbutton

            canvasforbutton = new ControlCuColturiRotunde(can, 206, 39, 0, 318, false, 1);
            canvasforbutton.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
            canvasforbutton.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 208, 40);
            canvasforbutton.Colturi(10, 10, new Rect(0, 0, 206, 38));
            canvasforbutton.AddTextBlock(new TextBlock(), "Log in", 17, 80, 5, "#ffe0e1c0");
            canvasforbutton.Cursor = Cursors.Hand;
            butonlogin = canvasforbutton.intoarce();
            butonlogin.MouseEnter += new MouseEventHandler(butonlogin_MouseEnter);
            butonlogin.MouseLeave += new MouseEventHandler(butonlogin_MouseLeave);
            butonlogin.MouseLeftButtonDown += new MouseButtonEventHandler(butonlogin_MouseLeftButtonDown);
            #endregion
            #region Register ForgotPassward
            //register forgotpassward
            register = new TextBlock() { Cursor = Cursors.Hand };
            Recover = new TextBlock() { Cursor = Cursors.Hand };
            rf = new ControlCuColturi(can, 205, 40, 0, 365, true, 1);
            rf.AddTextBlock(register, "Register", 14, 0, 5, "#FF8b9205");
            rf.AddTextBlock(new TextBlock(), "|", 14, 62, 5, "#FF8b9205");
            rf.AddTextBlock(Recover, "Recover Password", 14, 74, 5, "#FF8b9205");
            Recover.MouseEnter += new MouseEventHandler(Recover_MouseEnter);
            Recover.MouseLeave += new MouseEventHandler(Recover_MouseLeave);
            register.MouseEnter += new MouseEventHandler(register_MouseEnter);
            register.MouseLeave += new MouseEventHandler(register_MouseLeave);
            register.MouseLeftButtonDown += new MouseButtonEventHandler(register_MouseLeftButtonDown);
            #endregion

            Line l = new Line() { X1 = 0, X2 = 205, Y1 = 400, Y2 = 400, Stroke = new SolidColorBrush(Colors.White), StrokeThickness = 1 };
            can.Children.Add(l);
            #region ConnectWithFacebook
            ConnectwithFacebook = new ControlCuColturi(can, 50, 50, 0, 405, true, 1);
            ConnectwithFacebook.AddImage(new Image(), 30, 30, "DesignImages/1.png", 0, 0);
            ConnectwithFacebook.AddTextBlock(new TextBlock(), "Connect with Facebook", 15, 30, 5, "#FF5a748d");
            Connect = ConnectwithFacebook.intoarce();
            Connect.Cursor = Cursors.Hand;
            Connect.MouseLeftButtonDown += new MouseButtonEventHandler(Connect_MouseLeftButtonDown);
            #endregion
            Line l1 = new Line() { X1 = 0, X2 = 205, Y1 = 440, Y2 = 440, Stroke = new SolidColorBrush(Colors.White), StrokeThickness = 1 };
            can.Children.Add(l1);
            Meniu = can;
            loggedIn = false;

            // Alex
            // Store the current instance for global use
            instance = this;
        }
示例#14
0
        void donatii_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {//ce s cu liniile astea?stai putin...e conturul ala de la pagina
            ch.Children.Clear();
            Line l1 = new Line();
            Line l2 = new Line();
            Line l3 = new Line();
            Line l4 = new Line();
            //  double lung = ch.MaxHeight;
            // MessageBox.Show(lung.ToString());
            Linie lsus = new Linie(0, 0, ch.Width, 0, "#FF8b8e8f", 2.5, ch, l1);
            Linie lstanga = new Linie(0, 0, 0, ch.Height, "#FF8b8e8f", 2.5, ch, l2);
            Linie ljos = new Linie(0, ch.Height, ch.Width, ch.Height, "#FF8b8e8f", 2.5, ch, l3);
            Linie ldreapta = new Linie(ch.Width, 0, ch.Width, ch.Height, "#FF8b8e8f", 2.5, ch, l4);

            ControlCuColturiRotunde sus = new ControlCuColturiRotunde(ch, ch.Width - 2, 60, 0, 0, false, 1);
            sus.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            sus.Border(new CornerRadius(0, 0, 0, 0), "#FF696c6e", new Thickness(1), ch.Width, 62);

            #region Donations
            Donations = new ControlCuColturiRotunde(ch, 190, 60, 0, 1, false, 1);
            Donations.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            Donations.AddTextBlock(new TextBlock(), "My Donations", 23, 20, 10, "#FF959906");
            MyDonations = Donations.intoarce();
            MyDonations.MouseEnter += new MouseEventHandler(MyDonations_MouseEnter);
            MyDonations.MouseLeave += new MouseEventHandler(MyDonations_MouseLeave);
            MyDonations.MouseLeftButtonDown += new MouseButtonEventHandler(MyDonations_MouseLeftButtonDown);
            #endregion

            #region CCampaigns
            CCampaigns = new ControlCuColturiRotunde(ch, 240, 60, 192, 1, false, 1);
            CCampaigns.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            CCampaigns.AddTextBlock(new TextBlock(), "Active Campaigns", 23, 20, 10, "#FF959906");
            Campaigns = CCampaigns.intoarce();
            Campaigns.MouseEnter += new MouseEventHandler(Campaigns_MouseEnter);
            Campaigns.MouseLeave += new MouseEventHandler(Campaigns_MouseLeave);
            Campaigns.MouseLeftButtonDown += new MouseButtonEventHandler(Campaigns_MouseLeftButtonDown);
            #endregion
//tu mai demult mi-ai aratat ca ai pus datagrid acolo, da dar l-am sters pai dar cum il adaugai in mijloc?
            //stai
        }
示例#15
0
        public Info(List<bing.ServiceReference1.ProceduraRealJudet_Result> lista,int number,Map m,Canvas can)
        {
            this.m = m;
            this.can = can;
            // Caut buton-ul de back printre Copiii lui Canvas si il retin
            // pentru a-l adauga la iesirea din meniul Info
            foreach (UIElement child in can.Children.ToArray())
            {
                if (child.GetType().ToString() == "System.Windows.Controls.Primitives.Popup")
                {
                    popup = (Popup)child;
                }
            }
            can.Children.Clear();

            System.Collections.ObjectModel.ObservableCollection<Writer2> W2 = new System.Collections.ObjectModel.ObservableCollection<Writer2>();
            InitializeComponent();
            foreach (var c in lista)
            {
                if (c.ID == number)
                {
                    lista2.Add(c);
                    
                }
            }
          //  double d = double.Parse(lista2[0].CalitateAer.ToString());
            Rectangle.Width = (double.Parse(lista2[0].CalitateAer.ToString()) * 147) / 5;
            textBlockQ.Text = lista2[0].CalitateAer.ToString();
            Rectangle2.Width = (double.Parse(lista2[0].PoluareSol.ToString()) * 147) / 500000;
            textBlockS.Text = lista2[0].PoluareSol.ToString();
            #region Textblockuri
            try
            {
                foresttextBlock.Text = lista2[0].ProcentPadure.ToString();
                naturalRtextBlock.Text = lista2[0].RezervatiiNaturale.ToString();
                nationalparktextBlock.Text = lista2[0].ParcuriNationale.ToString();
                towntextBlock.Text = lista2[0].NrOrase.ToString();
                ExtractiveItextBlock.Text = lista2[0].IndustriaExtractiva.ToString();
                processingItextBlock.Text = lista2[0].IndustriaPrelucrativa.ToString();
                powerplantstextBlock.Text = lista2[0].NrTermocentrale.ToString();
                hydropowertextblock.Text = lista2[0].NrHidrocentrale.ToString();
            }
            catch(Exception ex)
            { MessageBox.Show(ex.Message); }
            #endregion
            W2.Add(new Writer2("National Parks",int.Parse(lista2[0].ParcuriNationale.ToString())));
            W2.Add(new Writer2("Forest", (int)lista2[0].ProcentPadure));
            W2.Add(new Writer2("Natural Reservations",lista2[0].RezervatiiNaturale));
            W2.Add(new Writer2("Towns", lista2[0].NrOrase));
            
          
           myPie.DataContext = W2;

            ControlCuColturiRotunde sus = new ControlCuColturiRotunde(LayoutRoot, LayoutRoot.Width - 2, 60, 0, 0, false, 1);
            sus.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            sus.Border(new CornerRadius(0, 0, 0, 0), "#FF696c6e", new Thickness(1), LayoutRoot.Width, 62);

            ControlGoBack = new ControlCuColturiRotunde(LayoutRoot, 146, 39, 570, 10, true, 1);
            ControlGoBack.AddTextBlock(new TextBlock(), "back to main zone", 14, 10, 5, "#FF959906");
            ControlGoBack.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 148, 40);
            ControlGoBack.Colturi(10, 10, new Rect(0, 0, 146, 38));
            
            CanvasGoBack = ControlGoBack.intoarce();
            CanvasGoBack.MouseEnter += new MouseEventHandler(CanvasGoBack_MouseEnter);
            CanvasGoBack.MouseLeave += new MouseEventHandler(CanvasGoBack_MouseLeave);
            CanvasGoBack.MouseLeftButtonDown += new MouseButtonEventHandler(CanvasGoBack_MouseLeftButtonDown);
            #region Stanga
            WidthLeng1 = 8 * lista2[0].Nume.Length;
            ControlJudetStanga = new ControlCuColturiRotunde(LayoutRoot, WidthLeng1, 60, 0, 1, false, 1);
            ControlJudetStanga.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            ControlJudetStanga.AddTextBlock(new TextBlock(), lista2[0].Nume, 23, 20, 10, "#FF959906");
            CanvasjudetStanga = ControlJudetStanga.intoarce();
            CanvasjudetStanga.MouseEnter += new MouseEventHandler(MyTrades_MouseEnter);
            CanvasjudetStanga.MouseLeave += new MouseEventHandler(MyTrades_MouseLeave);
            CanvasjudetStanga.MouseLeftButtonDown += new MouseButtonEventHandler(CanvasjudetStanga_MouseLeftButtonDown);
            #endregion
            #region Mijloc
            if (lista2.Count >= 2)
            {
                WidthLeng2 = 8 * lista2[1].Nume.Length;
                ControlJudetMijloc = new ControlCuColturiRotunde(LayoutRoot, WidthLeng2, 60, WidthLeng1+2, 1, false, 1);
                ControlJudetMijloc.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
                ControlJudetMijloc.AddTextBlock(new TextBlock(), lista2[1].Nume, 23, 20, 10, "#FF959906");
                CanvasjudetMijloc = ControlJudetMijloc.intoarce();
                CanvasjudetMijloc.MouseEnter += new MouseEventHandler(Buy_MouseEnter);
                CanvasjudetMijloc.MouseLeave += new MouseEventHandler(Buy_MouseLeave);
            }
            CanvasjudetMijloc.MouseLeftButtonDown += new MouseButtonEventHandler(CanvasjudetMijloc_MouseLeftButtonDown);
            #endregion
            #region Dreapta
            if (lista2.Count >= 3)
            {
                WidthLeng3 = 8 * lista2[2].Nume.Length;
                ControlJudetDreapta = new ControlCuColturiRotunde(LayoutRoot, WidthLeng3, 60,WidthLeng1+ WidthLeng2+4, 1, false, 1);
                ControlJudetDreapta.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
                ControlJudetDreapta.AddTextBlock(new TextBlock(), lista2[2].Nume, 23, 20, 10, "#FF959906");
                Canvasjudetdreapta = ControlJudetDreapta.intoarce();
                Canvasjudetdreapta.MouseEnter += new MouseEventHandler(Sell_MouseEnter);
                Canvasjudetdreapta.MouseLeave += new MouseEventHandler(Sell_MouseLeave);
                Canvasjudetdreapta.MouseLeftButtonDown += new MouseButtonEventHandler(Canvasjudetdreapta_MouseLeftButtonDown);
            }
            #endregion
        }
示例#16
0
        private static int VerifyBuying = 0;//e folosit si la selling
        public MyTranzactii(Canvas canvas2)
        {
            AtributeGlobale.i++;
            
            Search = new Canvas();
            CreateOffer = new Canvas();
            this.canvas2 = canvas2;
            canvas2.Children.Clear();
            //b e busyIndicator
            b.Width = 152;
            b.Height = 56;
            b.IsBusy = false;
   
            canvas2.Children.Add(b);
            Canvas.SetLeft(b, canvas2.Width/2-152);
            Canvas.SetTop(b, canvas2.Height / 2);
            ControlCuColturiRotunde sus = new ControlCuColturiRotunde(canvas2, canvas2.Width - 2, 60, 0, 0, false, 1);
            sus.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            sus.Border(new CornerRadius(0, 0, 0, 0), "#FF696c6e", new Thickness(1), canvas2.Width, 62);
            #region Trades
            Trades = new ControlCuColturiRotunde(canvas2, 160, 60, 0, 1, false, 1);
            Trades.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            Trades.AddTextBlock(new TextBlock(), "My Trades", 23, 20, 10, "#FF959906");
            MyTrades = Trades.intoarce();
            MyTrades.MouseEnter += new MouseEventHandler(MyTrades_MouseEnter);
            MyTrades.MouseLeave += new MouseEventHandler(MyTrades_MouseLeave);
            MyTrades.MouseLeftButtonDown += new MouseButtonEventHandler(MyTrades_MouseLeftButtonDown);
            #endregion
            #region Cbuy
            CBuy = new ControlCuColturiRotunde(canvas2, 80, 60, 162, 1, false, 1);
            CBuy.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            CBuy.AddTextBlock(new TextBlock(), "Buy", 23, 20, 10, "#FF959906");
            Buy = CBuy.intoarce();
            Buy.MouseEnter += new MouseEventHandler(Buy_MouseEnter);
            Buy.MouseLeave += new MouseEventHandler(Buy_MouseLeave);
            Buy.MouseLeftButtonDown += new MouseButtonEventHandler(Buy_MouseLeftButtonDown);
            #endregion
            #region Sell
            CSell = new ControlCuColturiRotunde(canvas2, 80, 60, 244, 1, false, 1);
            CSell.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            CSell.AddTextBlock(new TextBlock(), "Sell", 23, 20, 10, "#FF959906");
            Sell = CSell.intoarce();
            Sell.MouseEnter += new MouseEventHandler(Sell_MouseEnter);
            Sell.MouseLeave += new MouseEventHandler(Sell_MouseLeave);
            Sell.MouseLeftButtonDown += new MouseButtonEventHandler(Sell_MouseLeftButtonDown);
            #endregion
            #region Conectare Service
            try
            {
                bing.ServiceReference1.TranzactiiClient tc = new bing.ServiceReference1.TranzactiiClient(bind,endpoint);
                //tc.GetToateAnimaleleAsync();
                //tc.GetToateAnimaleleCompleted += new EventHandler<bing.ServiceReference1.GetToateAnimaleleCompletedEventArgs>(tc_GetToateAnimaleleCompleted);
                   Toateanimalele = new List<string>();
                tc.gettranzAsync("test");
                tc.gettranzCompleted += new EventHandler<bing.ServiceReference1.gettranzCompletedEventArgs>(tc_gettranzCompleted);
                         }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
            #endregion
            #region Imagine
            imgInchide.Source = new BitmapImage(new Uri("DesignImages/x.png", UriKind.Relative));
            imgInchide.Height = 25;
            imgInchide.Width = 25;
            imgInchide.MouseEnter += new MouseEventHandler(imgInchide_MouseEnter);
            imgInchide.MouseLeave += new MouseEventHandler(imgInchide_MouseLeave);
            imgInchide.MouseLeftButtonDown += new MouseButtonEventHandler(imgInchide_MouseLeftButtonDown);
            canvas2.Children.Add(imgInchide);
            Canvas.SetTop(imgInchide, 12);
            Canvas.SetLeft(imgInchide, 728);
#endregion
            adaugaSearch();
            CRCuvant.Ascunde();
            CRRegiune.Ascunde();
            CRQA.Ascunde();
            search.Ascunde();
            lol.Ascunde();
            lupa = new Image() { Width = 28, Height = 27, Source = new BitmapImage(new Uri("DesignImages/lupa.png", UriKind.Relative)) };
            canvas2.Children.Add(lupa);
            lupa.Visibility = Visibility.Collapsed;
            Canvas.SetLeft(lupa, 10);
            Canvas.SetTop(lupa, 80);
        }
示例#17
0
        void IncarcaAnimale()
        {
            lupa.Visibility = Visibility.Collapsed;
            
            CRCuvant.Ascunde();
            CRRegiune.Ascunde();
            CRQA.Ascunde();
            search.Ascunde();
            lol.Ascunde();
            canvas2.Children.Remove(sv);
            #region ButoanDesSusNormal
            CBuy.Children.Clear();
            CBuy.AddTextBlock(new TextBlock(), "Buy", 23, 20, 10, "#FF959906");
            CBuy.Border(new CornerRadius(0, 0, 0, 0), "#00000000", new Thickness(1), 80, 60);
            Buy.Height = 59;
            CSell.Children.Clear();
            CSell.AddTextBlock(new TextBlock(), "Sell", 23, 20, 10, "#FF959906");
            CSell.Border(new CornerRadius(0, 0, 0, 0), "#00000000", new Thickness(1), 80, 60);
            Sell.Height = 59;
            #endregion
            mousepresstrades = true;
            mousepressbuy = mousepresssell = false;

            try
            {
                if (adauga == true)
                {
                    #region Canvasu din Stanga


                    CreateOffer.Background = new SolidColorBrush(Colors.Transparent);
                    CreateOffer.Width = 200;
                    CreateOffer.Height = 400;
                    canvas2.Children.Add(CreateOffer);
                    Canvas.SetLeft(CreateOffer, 15);
                    Canvas.SetTop(CreateOffer, 100);
                    TextBlock t = new TextBlock() { Text = "Create an offer", FontSize = 17, FontFamily = new FontFamily("Tahoma"), Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x7d, 0x91, 0x96)) };
                    CreateOffer.Children.Add(t);
                    Canvas.SetLeft(t, 5);
                    Canvas.SetTop(t, 0);
                    #endregion Canvasu din stanga
                    #region SellBuy
                    ControlCuColturiRotunde CRBuySell = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 40, false, 1);
                    CRBuySell.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                    CRBuySell.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                    CRBuySell.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    CRBuySell.AddTextBlock(new TextBlock(), "I want to:", 15, 5, 10, null);


                    ComboBoxItem cbiBuySell = new ComboBoxItem();
                    cbiBuySell.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                    cbiBuySell.Content = "Buy";

                    cbiBuySell.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
                    cbBuySell.Width = 120;
                    cbBuySell.Items.Add(cbiBuySell);
                    cbiBuySell = new ComboBoxItem();
                    cbiBuySell.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                    cbiBuySell.Content = "Sell";
                    cbBuySell.Items.Add(cbiBuySell);

                    cbBuySell.SelectedIndex = 0;
                    cbBuySell.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];

                    CRBuySell.AddDropDown(cbBuySell, "#FF000000", "#00000000", 15, 85, 7);

                    cbBuySell.MouseEnter += new MouseEventHandler(cb_MouseEnter);
                    cbBuySell.MouseLeave += new MouseEventHandler(cb_MouseLeave);

                    #endregion BuySell
                    #region Type
                    ControlCuColturiRotunde CRType = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 90, false, 1);
                    CRType.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                    CRType.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                    CRType.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    CRType.AddTextBlock(new TextBlock(), "Type:", 15, 5, 10, null);




                    ComboBoxItem cbiType = new ComboBoxItem();
                    cbiType.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                    cbiType.Content = "Fauna";
                    cbiType.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));

                    cbType.Items.Add(cbiType);

                    cbiType = new ComboBoxItem();
                    cbiType.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                    cbiType.Content = "Vegetation";

                    cbType.Items.Add(cbiType);

                    CRType.AddDropDown(cbType, "#FF000000", "#00000000", 15, 55, 7);
                    cbType.Width = 150;
                    cbType.SelectedIndex = 0;
                    cbType.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];
                    cbType.MouseEnter += new MouseEventHandler(cbType_MouseEnter);
                    cbType.MouseLeave += new MouseEventHandler(cbType_MouseLeave);
                    #endregion Type
                    #region Species
                    ControlCuColturiRotunde CRSpecies = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 140, false, 1);
                    CRSpecies.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                    CRSpecies.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                    CRSpecies.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    CRSpecies.AddTextBlock(new TextBlock(), "Species:", 15, 5, 10, null);

                    //string[] ss = new string[] {"sorici","ursulet","cocolino","petrescu","kek","donici","motorga","guster","petarde","ursulet 2","jjj","rexona","for men" };
                    ComboBoxItem cbiSpecies;
                    for (int i = 0; i < Toateanimalele.Count; i++)
                    {
                        cbiSpecies = new ComboBoxItem();
                        cbiSpecies.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                        cbiSpecies.Content = Toateanimalele[i];
                        cbiSpecies.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));

                        cbSpecies.Items.Add(cbiSpecies);
                    }


                    CRSpecies.AddDropDown(cbSpecies, "#FF000000", "#00000000", 15, 75, 7);
                    cbSpecies.Width = 130;
                    //   cbSpecies.SelectedIndex = 0;
                    cbSpecies.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];
                    cbSpecies.MouseEnter += new MouseEventHandler(cbSpecies_MouseEnter);
                    cbSpecies.MouseLeave += new MouseEventHandler(cbSpecies_MouseLeave);
                    #endregion Species
                    #region Quantity
                    ControlCuColturiRotunde CRQuantity = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 190, false, 1);
                    CRQuantity.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                    CRQuantity.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                    CRQuantity.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    CRQuantity.AddTextBlock(new TextBlock(), "Quantity:", 15, 5, 10, null);
                    CRQuantity.AddTextBox(numar, "", 100, 30, 0, 15, "#FF000000", "#FF000000", "#FF581818", "#FFBE4141", null, true, 90, 5);
                    #endregion Quantity
                    #region Price
                    ControlCuColturiRotunde CRPrice = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 240, false, 1);
                    CRPrice.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                    CRPrice.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                    CRPrice.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    CRPrice.AddTextBlock(new TextBlock(), "Price:", 15, 5, 10, null);
                    CRPrice.AddTextBox(pret, "", 110, 30, 0, 15, "#FF000000", "#FF000000", "#FF581818", "#FFBE4141", null, true, 50, 5);
                    #endregion Price
                    #region Shipping

                    ControlCuColturiRotunde CRShipping = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 290, false, 1);
                    CRShipping.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                    CRShipping.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                    CRShipping.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    CRShipping.AddTextBlock(new TextBlock(), "Shipping", 15, 5, 10, null);


                    cbShipping.Width = 120;
                    for (int i = 0; i < ListaFrime.Count; i++)
                    {
                        ComboBoxItem cbiShipping = new ComboBoxItem();
                        cbiShipping.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                        cbiShipping.Content = ListaFrime[i];
                        cbiShipping.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
                        cbShipping.Items.Add(cbiShipping);

                    }
                    cbShipping.SelectedIndex = 0;
                    cbShipping.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];

                    CRShipping.AddDropDown(cbShipping, "#FF000000", "#00000000", 15, 85, 7);

                    cbShipping.MouseEnter += new MouseEventHandler(cbShipping_MouseEnter);
                    cbShipping.MouseLeave += new MouseEventHandler(cbShipping_MouseLeave);
                    #endregion Shipping
                 
                    #region Buton
                    ControlCuColturiRotunde ccr = new ControlCuColturiRotunde(CreateOffer, 206, 39, 0, 340, false, 1);
                    ccr.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
                    ccr.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 208, 40);
                    ccr.Colturi(10, 10, new Rect(0, 0, 206, 38));
                    ccr.AddTextBlock(new TextBlock(), "Post offer", 17, 70, 5, "#ffe0e1c0");
                    ccr.Cursor = Cursors.Hand;
                    adaugaoferta = ccr.intoarce();
                    adaugaoferta.MouseLeftButtonDown += new MouseButtonEventHandler(adaugaoferta_MouseLeftButtonDown);
                    #endregion
                    adauga = false;
                }
                else
                {
                    canvas2.Children.Add(CreateOffer);
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
            b.IsBusy = false;
        }
示例#18
0
        void adaugaSearch()
        {
            #region Keywords
            KeyWords = new TextBox();
            CRCuvant = new ControlCuColturiRotunde(canvas2, 286, 39, 50, 73, false, 1);
            CRCuvant.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
            CRCuvant.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 288, 40);
            CRCuvant.Colturi(10, 10, new Rect(0, 0, 286, 38));

            CRCuvant.AddTextBlock(new TextBlock(), "Keywords:", 15, 5, 10, null);
            CRCuvant.AddTextBox(KeyWords, "", 170, 30, 0, 15, "#FF000000", "#FF000000", "#FF581818", "#FFBE4141", null, true, 90, 5);
            #endregion Keywords
            #region Regiune
            try
            {
                CRRegiune = new ControlCuColturiRotunde(canvas2, 206, 39, 355, 73, false, 1);
                CRRegiune.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
                CRRegiune.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 208, 40);
                CRRegiune.Colturi(10, 10, new Rect(0, 0, 206, 38));
                CRRegiune.AddTextBlock(new TextBlock(), "Region :", 14, 5, 10, "#FF000000");
                string[] regiuni = new string[] { "Moldova", "Transilvania", "Dobrogea", "Oltenia", "Banat" };

                for (int i = 0; i < regiuni.Length; i++)
                {
                    ComboBoxItem cbiBuySell = new ComboBoxItem();
                    cbiBuySell.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                    cbiBuySell.Content = regiuni[i];
                    cbiBuySell.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
                    cbRegiune.Items.Add(cbiBuySell);
                }
                cbRegiune.Width = 120;
                cbRegiune.SelectedIndex = 0;
                cbRegiune.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];
                CRRegiune.AddDropDown(cbRegiune, "#FF000000", "#00000000", 15, 85, 7);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }

            #endregion Regiune
            #region Buton Search
            search = new ControlCuColturiRotunde(canvas2, 126, 39, 580, 73, false, 1);
            search.Colors("#FF969a07", "#FF7a7d04", new Point(0.5, 1), new Point(0.5, 0), null);
            search.Border(new CornerRadius(10, 10, 10, 10), "#FF9fa13a", new Thickness(1), 128, 40);
            search.Colturi(10, 10, new Rect(0, 0, 126, 38));
            search.AddTextBlock(new TextBlock(), "Search", 17, 40, 5, "#ffe0e1c0");
            search.Cursor = Cursors.Hand;
            Search = search.intoarce();
            Search.MouseLeftButtonDown += new MouseButtonEventHandler(Search_MouseLeftButtonDown);
            #endregion Buton Search
            #region SearchDAQA
            lol = new ControlCuColturiRotunde(canvas2, 26, 29, 10, 130, false, 1);
            lol.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
            lol.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 28, 30);
            lol.Colturi(10, 10, new Rect(0, 0, 26, 28));
            chceck = lol.intoarce();
            chceck.MouseLeftButtonDown += new MouseButtonEventHandler(chceck_MouseLeftButtonDown);

            CRQA = new ControlCuColturiRotunde(canvas2, 326, 39, 50, 123, false, 1);
            CRQA.Colors("#FF465d6a", "#FF5c7084", new Point(0.5, 1), new Point(0.5, 0), null);
            CRQA.Border(new CornerRadius(10, 9, 9, 9), "#FF88B4BB", new Thickness(1), 328, 40);
            CRQA.Colturi(10, 10, new Rect(0, 0, 326, 38));
            CRQA.AddTextBlock(new TextBlock(), "Order by :", 14, 5, 10, "#FF000000");
            string[] alege = new string[] { "Price", "Quantity" };
            for (int i = 0; i < alege.Length; i++)
            {
                ComboBoxItem cbiBuySell = new ComboBoxItem();
                cbiBuySell.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                cbiBuySell.Content = alege[i];
                cbiBuySell.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
                cbSortPQ.Items.Add(cbiBuySell);
            }
            cbSortPQ.Width = 100;
            cbSortPQ.SelectedIndex = 0;
            cbSortPQ.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];
            CRQA.AddDropDown(cbSortPQ, "#FF000000", "#00000000", 15, 85, 7);
            string[] alege2 = new string[] { "Descending", "Ascending" };
            for (int i = 0; i < alege.Length; i++)
            {
                ComboBoxItem cbiBuySell = new ComboBoxItem();
                cbiBuySell.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x95, 0x99, 0x06));
                cbiBuySell.Content = alege2[i];
                cbiBuySell.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x00, 0x00, 0x00));
                cbSortAD.Items.Add(cbiBuySell);
            }
            cbSortAD.Width = 120;
            cbSortAD.SelectedIndex = 0;
            cbSortAD.Style = (Style)Application.Current.Resources["ComboBoxStyle1"];
            CRQA.AddDropDown(cbSortAD, "#FF000000", "#00000000", 15, 175, 7);
            #endregion
        }
示例#19
0
        public Upgrades(ServiceReference1.ProcedureUpgrades_Result lista,Canvas canvas2)
        {
            AtributeGlobale.i++;
            InitializeComponent();
            this.canvas2 = canvas2;
            this.lista = lista;
            #region ifuri
            #region randul de sus
            if (lista.Profits == true)
            {
                profits = true;
                i1.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Tree == true)
            {
                tree = true;
                i2.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Power == true)
            {
                power = true;
                i3.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Bear == true)
            {
                bear = true;
                i4.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.WindMill == true)
            {
                windmill = true;
                i5.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
          
            }
            #endregion
            #region randul mijlociu
            if (lista.SaveForest == true)
            {
                profits = true;
                i6.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.TakeAction == true)
            {
                takeaction = true;
                i7.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.AntiBugs == true)
            {
                antibugs = true;
                i8.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Flood == true)
            {
                flood = true;
                i9.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Buy == true)
            {
                buy = true;
                i10.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));

            }
            #endregion
            #region ultimul
            if (lista.H20 == true)
            {
                h2o = true;
                i11.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Eco == true)
            {
                eco = true;
                i12.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Plants == true)
            {
                plants = true;
                i13.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.House == true)
            {
                house = true;
                i14.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));
            }
            if (lista.Earth == true)
            {
                earth = true;
                i15.Source = new BitmapImage(new Uri("Upgrades/Analyst-Upgradesluat.jpg", UriKind.Relative));

            }
            #endregion
            #endregion
            border6.Opacity = border7.Opacity = border8.Opacity = border9.Opacity=border10.Opacity = 0;
            border11.Opacity = border12.Opacity = border13.Opacity = border14.Opacity = border15.Opacity = 0;
            sb1.Begin();
            t.Interval = new TimeSpan(0, 0, 0, 0, 10);
            t.Tick += new EventHandler(t_Tick);
            t.Start();
            sb1.Completed += new EventHandler(sb1_Completed);
            Trades = new ControlCuColturiRotunde(LayoutRoot, 160, 60, 0, 1, false, 1);
            Trades.Colors("#FF252525", "#FF000000", new Point(0.5, 1), new Point(0.5, 0), 1);
            Trades.AddTextBlock(new TextBlock(), "Upgrades", 23, 20, 10, "#FF959906");
            MyTrades = Trades.intoarce();
            MyTrades.MouseEnter += new MouseEventHandler(MyTrades_MouseEnter);
            MyTrades.MouseLeave += new MouseEventHandler(MyTrades_MouseLeave);
          
        }
示例#20
0
        public void Aranjeaza(List<HistoryPadure_Result> lista)
        {
            #region Adresa + Nume animal
            ControlCuColturiRotunde adresscur = new ControlCuColturiRotunde(can, 230, 74, 0, 7, true, 1);
            adresscur.Colturi(13, 13, new Rect(0, 0, 230, 74));
            adresscur.Colors("#FFF0F8FF", "#FFF0F8FF", new Point(0.5, 1), new Point(0.5, 0), 0.3);

            Canvas wrap = new Canvas() { Margin = new Thickness(12, 12, 12, 12), Width = 210, Height = 60 };
            TextBlock tb1 = new TextBlock() { Text = "You are here: ", Margin = new Thickness(0, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            TextBlock tb2 = new TextBlock() { Text = AtributeGlobale.RegiuneaCurenta.ToString(), Margin = new Thickness(tb1.ActualWidth + 1, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            TextBlock tb3 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb1.ActualWidth + tb2.ActualWidth + 2, 1, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            TextBlock tb4 = new TextBlock() { Text = AtributeGlobale.SubRegiuneaCurenta.ToString(), Margin = new Thickness(tb1.ActualWidth + tb2.ActualWidth + tb3.ActualWidth + 3, 1, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            if (tb4.Margin.Left + tb4.ActualWidth > 210)//trecere urm rand
                tb4.Margin = new Thickness(15, 18, 0, 0);
            TextBlock tb5 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb4.Margin.Left != 0 ? tb4.ActualWidth + 16 : 15, 18, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            if (tb4.Margin.Left != 15)
                tb5.Margin = new Thickness(15, 18, 0, 0);
            TextBlock tb6 = new TextBlock() { Text = AtributeGlobale.ZonaCurenta.ToString(), Margin = new Thickness(tb5.Margin.Left + tb5.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            TextBlock tb7 = new TextBlock() { Text = " >> ", Margin = new Thickness(tb6.Margin.Left + tb6.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Comic Sans MS"), FontWeight = FontWeights.SemiBold, FontSize = 8, Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 42, 116)) };
            tb8 = new TextBlock() { Text = "Animals", Margin = new Thickness(tb7.Margin.Left + tb7.ActualWidth + 1, 18, 0, 0), FontFamily = new FontFamily("Tahoma"), FontSize = 12, Foreground = new SolidColorBrush(Colors.Black), Cursor = Cursors.Hand };
            wrap.Children.Add(tb1); wrap.Children.Add(tb2); wrap.Children.Add(tb3); wrap.Children.Add(tb4); wrap.Children.Add(tb5); wrap.Children.Add(tb6); wrap.Children.Add(tb7); wrap.Children.Add(tb8);
            can.Children.Add(wrap);

            // Alex
            // Evenimente
            tb2.MouseLeftButtonUp += new MouseButtonEventHandler(tb2_MouseLeftButtonUp);
            tb4.MouseLeftButtonUp += new MouseButtonEventHandler(tb4_MouseLeftButtonUp);
            #endregion
            #region history
            //Line l2 = new Line() { X1 = 8, X2 = 226, Y1 = 290, Y2 = 290, Stroke = new SolidColorBrush(Colors.White), StrokeThickness = 1 };
            //can.Children.Add(l2);
            //TextBlock tb20 = new TextBlock() { Text = "History", Margin = new Thickness(10, 292, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 22, Foreground = new SolidColorBrush(Colors.White) };
            //can.Children.Add(tb20);
            int top = 342;
            int left = 0;
            if (lista.Count > 0)
            {
                TextBlock ist1 = new TextBlock() { Text = GetNormal(lista[0].Description), Margin = new Thickness(left+4, top, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, Width = 214, Height = 34 };
                Rectangle r1 = new Rectangle() { Fill = new SolidColorBrush(Color.FromArgb(255, 26, 28, 30)), Width = 218, Height = 36, Margin = new Thickness(left, top, 12, 12) };
                r1.Height = ist1.ActualHeight + 2;
                can.Children.Add(r1); can.Children.Add(ist1);
                AdaugaLinkuri(ref can, lista[0].Nume, ist1.Margin.Left, ist1.Margin.Top);

                if (lista.Count > 1)
                {
                    TextBlock ist2 = new TextBlock() { Text = GetNormal(lista[1].Description), Margin = new Thickness(left+4, top + ist1.ActualHeight + 2, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, Width = 214, Height = 34 };
                    Rectangle r2 = new Rectangle() { Fill = new SolidColorBrush(Colors.Transparent), Width = 218, Height = 36, Margin = new Thickness(left, top + ist1.ActualHeight + 2, 12, 12) };
                    r2.Height = ist2.ActualHeight + 2;
                    can.Children.Add(r2); can.Children.Add(ist2);
                    AdaugaLinkuri(ref can, lista[0].Nume, ist2.Margin.Left, ist2.Margin.Top);


                    if (lista.Count > 2)
                    {
                        TextBlock ist3 = new TextBlock() { Text = GetNormal(lista[2].Description), Margin = new Thickness(left+4, 342 + ist1.ActualHeight + ist2.ActualHeight + 4, 12, 12), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Colors.White), TextWrapping = TextWrapping.Wrap, Width = 214, Height = 34 };
                        Rectangle r3 = new Rectangle() { Fill = new SolidColorBrush(Color.FromArgb(255, 26, 28, 30)), Width = 218, Height = 36, Margin = new Thickness(left, 342 + ist1.ActualHeight + ist2.ActualHeight + 4, 12, 12) };
                        r3.Height = ist3.ActualHeight + 2;
                        can.Children.Add(r3); can.Children.Add(ist3);
                        AdaugaLinkuri(ref can, lista[2].Nume, ist3.Margin.Left, ist3.Margin.Top );


                        if (lista.Count > 3)
                        {
                            //TextBlock more2 = new TextBlock() { Text = "+ more info", Margin = new Thickness(150, 322 + ist1.ActualHeight + ist2.ActualHeight + ist3.ActualHeight + 6, 12, 10), FontFamily = new FontFamily("Tahoma"), FontSize = 14, Foreground = new SolidColorBrush(Color.FromArgb(255, 139, 146, 5)), Cursor = Cursors.Hand };
                            //more2.MouseEnter += new MouseEventHandler(more2_MouseEnter);
                            //more2.MouseLeave += new MouseEventHandler(more2_MouseLeave);
                            //more2.MouseLeftButtonDown += new MouseButtonEventHandler(more2_MouseLeftButtonDown);
                            //can.Children.Add(more2);
                        }
                    }
                }
            }
            #endregion
        }