Exemplo n.º 1
0
        public BulletinPage()
        {
            this.InitializeComponent();
            Current = this;
            listView1.ItemsSource = BulletinFileManager.GetBulletinFilesFromStorePath();

            _shifttimer = new DispatcherTimer()
            {
                Interval = TimeSpan.FromSeconds(SettingsPage._slideduration)
            };
            _shifttimer.Tick += _shifttimer_Tick;
        }
Exemplo n.º 2
0
        private async void buttonRemove_Click(object sender, RoutedEventArgs e)
        {
            BulletinFile bf = (BulletinFile)listView1.SelectedItem;

            if (bf != null)
            {
                StorageFile sf = await StorageFile.GetFileFromApplicationUriAsync(new Uri(bf.FileNameOnly));

                await sf.DeleteAsync();

                listView1.ItemsSource = null;
                listView1.ItemsSource = BulletinFileManager.GetBulletinFilesFromStorePath();
            }
        }