public void LoadConfig(Action callback) { ConfigurationServiceV40Client serviceClient = new ConfigurationServiceV40Client(); serviceClient.GetApplicationConfigCompleted += new EventHandler <GetApplicationConfigCompletedEventArgs>(serviceClient_GetApplicationConfigCompleted); serviceClient.GetApplicationConfigAsync(callback); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); Window.DocumentHorizontalScrollBar = ScrollBarVisibility.Disabled; Window.DocumentVerticalScrollBar = ScrollBarVisibility.Disabled; m_serviceClient.GetApplicationConfigCompleted += new EventHandler <GetApplicationConfigCompletedEventArgs>(serviceClient_GetApplicationConfigCompleted); m_serviceClient.CreateConfigCompleted += new EventHandler <CreateConfigCompletedEventArgs>(serviceClient_CreateConfigCompleted); m_serviceClient.EditConfigCompleted += new EventHandler <EditConfigCompletedEventArgs>(serviceClient_EditConfigCompleted); m_serviceClient.DeleteConfigCompleted += new EventHandler <DeleteConfigCompletedEventArgs>(serviceClient_DeleteConfigCompleted); m_serviceClient.GetApplicationConfigAsync(); }