コード例 #1
0
        private async void TTLSeconds_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new SelectTTLSecondsView();

            dialog.TTLSeconds = SelectedItem.TTLSeconds;

            var confirm = await dialog.ShowQueuedAsync();

            if (confirm == ContentDialogResult.Primary)
            {
                SelectedItem.TTLSeconds = dialog.TTLSeconds;
            }
        }
コード例 #2
0
        private async void TTLSeconds_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new SelectTTLSecondsView(SelectedItem.IsPhoto);

            dialog.TTLSeconds = SelectedItem.Ttl;

            var confirm = await dialog.ShowQueuedAsync();

            if (confirm == ContentDialogResult.Primary)
            {
                SelectedItem.Ttl = dialog.TTLSeconds;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("IsGroupingEnabled"));
            }
        }