Ejemplo n.º 1
0
        void Tweet_Loaded(object sender, RoutedEventArgs e)
        {
            RemoveHTML conv = new RemoveHTML();

            if (DataTransfer.DM == null)
            {
                Dispatcher.BeginInvoke(() => MessageBox.Show(Localization.Resources.ErrorLoadingTweet));
                NavigationService.GoBack();
                return;
            }


            status = DataTransfer.DM;

            RelativeDateTimeConverter dc = new RelativeDateTimeConverter();

            CreateText(status);

            Text.UpdateLayout();

            ContentPanel.DataContext = status;

            ViaDate.Margin = new Thickness(ViaDate.Margin.Left, Text.ActualHeight + Text.Margin.Top + 10,
                                           ViaDate.Margin.Right, ViaDate.Margin.Bottom);
            ViaDate.Text = (string)dc.Convert(status.CreatedDate, null, null, null);

            SName.Text = "@" + status.Author.ScreenName;
            ContentPanel.UpdateLayout();
        }
Ejemplo n.º 2
0
        private void Source_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            RemoveHTML conv   = new RemoveHTML();
            string     source = conv.Convert(viewModel.Tweet.Source, null, null, null) as string;
            var        filter = FilterManager.SetupMute(FilterType.Source, source);

            Dependency.Resolve <IMessageService>().ShowMessage(String.Format(Localization.Resources.SourceMutedUntil, source, filter.IsValidUntil.ToString("f")), "");
            viewModel.IsMuting = false;
        }
Ejemplo n.º 3
0
 private void Source_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     RemoveHTML conv = new RemoveHTML();
     string source = conv.Convert(viewModel.Tweet.Source, null, null, null) as string;
     var filter = FilterManager.SetupMute(FilterType.Source, source);
     Dependency.Resolve<IMessageService>().ShowMessage(String.Format(Localization.Resources.SourceMutedUntil, source, filter.IsValidUntil.ToString("f")), "");
     viewModel.IsMuting = false;
 }
Ejemplo n.º 4
0
        void Tweet_Loaded(object sender, RoutedEventArgs e)
        {
            RemoveHTML conv = new RemoveHTML();

            if (DataTransfer.DM == null)
            {
                Dispatcher.BeginInvoke(() => MessageBox.Show(Localization.Resources.ErrorLoadingTweet));
                NavigationService.GoBack();
                return;
            }

            status = DataTransfer.DM;

            RelativeDateTimeConverter dc = new RelativeDateTimeConverter();

            CreateText(status);

            Text.UpdateLayout();

            ContentPanel.DataContext = status;

            ViaDate.Margin = new Thickness(ViaDate.Margin.Left, Text.ActualHeight + Text.Margin.Top + 10,
                ViaDate.Margin.Right, ViaDate.Margin.Bottom);
            ViaDate.Text = (string)dc.Convert(status.CreatedDate, null, null, null) ;

            SName.Text = "@" + status.Author.ScreenName;
            ContentPanel.UpdateLayout();
        }