Esempio n. 1
0
        public void PreciStatAnne(int wilaya)
        {
            TabItem     t1          = new TabItem();
            ControlStat controlStat = new ControlStat(wilaya, 5, "Précipitation", "mm");

            t1.Content = controlStat;
            WrapPanel wrapPanel = new WrapPanel(); wrapPanel.Children.Add(new Image {
                Source = new BitmapImage(new Uri(@"..\..\Rousources\Icons\precipitation.png", UriKind.Relative)), Height = 10
            });

            wrapPanel.Children.Add(new Label {
                Content = "Précipitation"
            });
            t1.Header = wrapPanel;
            tabStat.Items.Add(t1);
        }
Esempio n. 2
0
        public void NebuStatAnne(int wilaya)
        {
            TabItem     t1          = new TabItem();
            ControlStat controlStat = new ControlStat(wilaya, 8, "Nébulosité", "%");

            t1.Content = controlStat;
            WrapPanel wrapPanel = new WrapPanel();

            wrapPanel.Children.Add(new Image {
                Source = new BitmapImage(new Uri(@"..\..\Rousources\Icons\winter.png", UriKind.Relative)), Height = 25, Width = 25
            });
            wrapPanel.Children.Add(new Label {
                Content = "Nébulosité"
            });
            t1.Header = wrapPanel;
            tabStat.Items.Add(t1);
        }
Esempio n. 3
0
        public void VisibStatAnne(int wilaya)
        {
            TabItem     t1          = new TabItem();
            ControlStat controlStat = new ControlStat(wilaya, 6, "Visibilité", "Km");

            t1.Content = controlStat;
            WrapPanel wrapPanel = new WrapPanel();

            wrapPanel.Children.Add(new Image {
                Source = new BitmapImage(new Uri(@"..\..\Rousources\Icons\eye.png", UriKind.Relative)), Height = 13, Width = 13
            });
            wrapPanel.Children.Add(new Label {
                Content = "Visibilité"
            });
            t1.Header = wrapPanel;
            tabStat.Items.Add(t1);
        }
Esempio n. 4
0
        public void VentStatAnne(int wilaya)
        {
            TabItem     t1          = new TabItem();
            ControlStat controlStat = new ControlStat(wilaya, 7, "Vent", "m/s");

            t1.Content = controlStat;
            WrapPanel wrapPanel = new WrapPanel();

            wrapPanel.Children.Add(new Image {
                Source = new BitmapImage(new Uri(@"..\..\Rousources\Icons\anemometer.png", UriKind.Relative)), Height = 20, Width = 20
            });
            wrapPanel.Children.Add(new Label {
                Content = "Vent"
            });
            t1.Header = wrapPanel;
            tabStat.Items.Add(t1);
        }
Esempio n. 5
0
        public void TempStatAnne(int wilaya)
        {
            TabItem     t1          = new TabItem();
            ControlStat controlStat = new ControlStat(wilaya, 1, "Temperature", "°");

            t1.Content = controlStat;
            WrapPanel wrapPanel = new WrapPanel {
                Height = 30
            };

            wrapPanel.Children.Add(new Image {
                Source = new BitmapImage(new Uri(@"..\..\Rousources\Icons\Thermometer-75.png", UriKind.Relative)), Height = 30, Width = 30, Margin = new Thickness(-5, 0, 0, 0)
            });
            wrapPanel.Children.Add(new Label {
                Content = "Temperature", Margin = new Thickness(-10, 0, 0, 0)
            });
            t1.Header = wrapPanel;
            tabStat.Items.Add(t1);
        }