private void OnStartup(object sender, StartupEventArgs e)
{
// Load the main control here
this.RootVisual = new Page();
if (e.InitParams != null)
{
foreach (var data in e.InitParams)
{
this.Resources.Add(data.Key, data.Value);
}
//Boolean.TryParse(App.Current.Resources[DISABLE_PROVIDER_REGISTRATIONS_KEY] as string, out DisableProviderRegistrations);
//Boolean.TryParse(App.Current.Resources[SHOW_INVITE_PANEL_KEY] as string, out ShowInvitePanel);
ServiceURL = App.Current.Resources[SERVICE_URL_KEY] as string;
NotificationsURL = App.Current.Resources[NOTIFICATIONS_URL_KEY] as string;
DefaultSIPDomain = App.Current.Resources[DEFAULT_SIP_DOMAIN_KEY] as string ?? DEFAULT_SIP_DOMAIN;
}
}