Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// Il modello di elemento per il controllo utente è documentato all'indirizzo http://go.microsoft.com/fwlink/?LinkId=234236

namespace GuidaTv
{   
    public delegate void RefreshButtonPressedHandler(Object sender, EventArgs args);

    public sealed partial class WarningBar : UserControl
    {
        public event RefreshButtonPressedHandler RefreshButtonPressed;

        public WarningBar()
        {
            this.InitializeComponent();
        }

        private void closeButton_Click_1(object sender, RoutedEventArgs e)
        {
            this.hideAnimation.Begin(); 

        }

        public void hideWarning() {
            this.hideAnimation.Begin();
        }

        public void showWarning() {
            this.showAnimation.Begin();

        }

        public void hideText(){
            this.text.Visibility = Visibility.Collapsed;
        }

        public void showText()
        {
            this.text.Visibility = Visibility.Visible;
        }
        public void showWarning(String warningText) {
            this.text.Text = warningText;
            this.showWarning();
        }

        private void refreshButton_Click_1(object sender, RoutedEventArgs e)
        {
            if (RefreshButtonPressed != null)
            {
                RefreshButtonPressed(this, null);
            }

        }

        public void disableRefresh() {
            this.refreshButton.IsEnabled = false;
        }

        public void enableRefresh()
        {
            this.refreshButton.IsEnabled = true;
        }
    }
}

Commits for Nextrek/Windows8/GuidaTv/GuidaTv/WarningBar.xaml.cs

Diff revisions: vs.
Revision Author Commited Message
21 JMBauan picture JMBauan Wed 26 Jun, 2013 10:48:36 +0000