public AddEditSiteDialog()
        {
            InitializeComponent();
            mSite = new Site();
            mSiteViewModel = new SiteViewModel(mSite) {View = this};

            DataContext = mSiteViewModel;
        }
        public AddEditSiteDialog(int siteId)
        {
            InitializeComponent();
            Title = "Edit Site";

            CmsWebServiceClient mCmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);

            mCmsWebServiceClient.GetSitesCompleted +=
                (s, e) =>
                {
                    mSite = (from x in e.Result where x.Id == siteId select x).FirstOrDefault();
                    mSiteViewModel = new SiteViewModel(mSite) {View = this};
                    DataContext = mSiteViewModel;
                };
            mCmsWebServiceClient.GetSitesAsync();
        }