private void Page_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
m_versionTextBlock.Text = Assembly.GetExecutingAssembly().FullName.Split(',')[1].Replace('=', ' ');
m_provisioningStatusMessage.Content = "Initialising...";
m_loginControl.CreateNewAccountClicked += CreateNewAccountLinkClicked;
m_loginControl.Authenticated += Authenticated;
m_createAccountControl.CloseClicked += CancelCreateCustomer;
m_createAccountControl.CustomerCreated += CustomerCreated;
m_serviceURL = App.ServiceURL;
m_notificationsURL = App.NotificationsURL;
if (!m_serviceURL.IsNullOrBlank())
{
m_entitiesServiceURL = m_serviceURL + ENTITIES_SERVICE_URL;
}
if (!m_notificationsURL.IsNullOrBlank())
{
m_notificationsServiceURL = m_notificationsURL + DEFAULT_NOTIFICATIONS_FILE;
}
// Use the Silverlight network stack so that SOAP faults can get through.
HttpWebRequest.RegisterPrefix(m_notificationsServiceURL, WebRequestCreator.ClientHttp);
if (m_riaContext == null)
{
CreateDomainContext();
}
m_createAccountControl.SetRIAContext(m_riaContext);
ThreadPool.QueueUserWorkItem(delegate { Initialise(); });
//UIHelper.SetPluginDimensions(LayoutRoot.RenderSize.Width, LayoutRoot.RenderSize.Height);
}