Click here to Skip to main content
15,881,139 members
Articles / Desktop Programming / WPF

SongBird - a Twitter Hybrid Smart Client

Rate me:
Please Sign up or sign in to vote.
4.97/5 (40 votes)
18 Jun 2009CPOL10 min read 107.3K   1.2K   84  
Using the WCF RESTful services to create a Twitter hybrid Smart Client.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using IO = System.IO;
using SongBird.Infrastructure;
using System.Xml.Linq;

namespace SongBird
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        /// <summary>
        /// Initialize a new instance of <see cref="MainWindow"/>.
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Enable the user to drag the window around the screen.
        /// </summary>
        public void DragWindow(object sender, MouseButtonEventArgs mbea)
        {
            DragMove();
        }

        /// <summary>
        /// This event is raised when the application closes.
        /// </summary>
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            Mediator.Instance.NotifyColleagues(ViewModelMessages.AppClosing, null);
        }

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
United Kingdom United Kingdom
A developer for over 30 years, I've been lucky enough to write articles and applications for Code Project as well as the Intel Ultimate Coder - Going Perceptual challenge. I live in the North East of England with 2 wonderful daughters and a wonderful wife.

I am not the Stig, but I do wish I had Lotus Tuned Suspension.

Comments and Discussions