1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Test

Discussion in 'Testing Area' started by ouflak, Feb 5, 2004.


  1. SanJoaquinSooner

    SanJoaquinSooner SoonerFans.com Elite Member

  2. ouflak

    ouflak Oh wow! Oh wow! Oh wow!

  3. ouflak

    ouflak Oh wow! Oh wow! Oh wow!

    Code:
                [color=blue]this[/color].timer.Tick += [color=blue]new[/color] [color="#009999"]EventHandler[/color]([color=blue]delegate[/color]([color=blue]object[/color] s, [color="#009999"]EventArgs[/color] a)
                {
                    if ([color=blue]this[/color].timeCollection.Count == 1)
                    {
                        [color=blue]this[/color].timeCollection.RemoveAt(0);
                    }
    
                    [color=blue]this[/color].timeCollection.Add(DateTime.Now.ToLongTimeString());
                });
    
    

    Code:
    .
    .
    .
            [color=blue]private readonly[/color] [color="#009999"]ObservableCollection[/color]<[color="#009999"]string[/color]> timeCollection;
    .
    .
    .
    
            [color=gray]/// <summary>
            ///[/color] [color=green]Gets the updating time[/color]
            [color=gray]/// </summary>[/color]
            [color=blue]public[/color] [color="#009999"]ObservableCollection[/color]<[color="#009999"]string[/color]> TimeCollection
            {
                [color=blue]get[/color] { [color=blue]return this[/color].timeCollection; }
            }
    
    Code:
    [color=blue]<[/color][color=brown]TextBlock[/color] [color=red]Height[/color][color=blue]="36"[/color] [color=red]HorizontalAlignment[/color][color=blue]="Right"[/color] [color=red]Margin[/color][color=blue]="0,6,56,0"[/color] [color=red]Name[/color][color=blue]="textTimeBlock"[/color]
                        [color=red]VerticalAlignment[/color][color=blue]="Top"[/color] [color=red]Width[/color][color=blue]="200"[/color] [color=red]Text[/color][color=blue]="{[/color][color=brown]Binding[/color] [color=red]Path[/color][color=blue]=TimeStringCollection[[color=black]0[/color]],[/color]
                        [color=red]RelativeSource[/color][color=blue]={[/color][color=brown]RelativeSource[/color] [color=red]FindAncestor[/color][color=blue],[/color] [color=red]AncestorType[/color][color=blue]={[/color][color=brown]x[/color][color=blue]:[/color][color=brown]Type[/color] [color=red]Window[/color][color=blue]}}}"[/color]
                        [color=red]FontSize[/color][color=blue]="24"[/color] [color=red]TextAlignment[/color][color=blue]="Center" />[/color]
    
    .
    .
    .
     
  4. Quik Sand

    Quik Sand New Member

  5. ouflak

    ouflak Oh wow! Oh wow! Oh wow!

  6. swardboy

    swardboy SoonerFans.com Elite Member

    [youtube]azMUu7seoYY[/youtube]
     
  7. picasso

    picasso SoonerFans.com Elite Member

  8. picasso

    picasso SoonerFans.com Elite Member

  9. picasso

    picasso SoonerFans.com Elite Member

  10. picasso

    picasso SoonerFans.com Elite Member

  11. picasso

    picasso SoonerFans.com Elite Member

  12. picasso

    picasso SoonerFans.com Elite Member

  13. picasso

    picasso SoonerFans.com Elite Member

  14. picasso

    picasso SoonerFans.com Elite Member

  15. picasso

    picasso SoonerFans.com Elite Member

  16. webfoot

    webfoot New Member

  17. Fish&Game

    Fish&Game New Member

  18. Blue

    Blue SoonerFans.com Elite Member

  19. 65Mustang

    65Mustang New Member

  20. sooner ngintunr

    sooner ngintunr Well-Known Member

    [youtube]gproa6vzgws[/youtube]
     
    Last edited: Jul 21, 2011

Share This Page