Example #1
0
        public void LoadConfig(Action callback)
        {
            ConfigurationServiceV40Client serviceClient = new ConfigurationServiceV40Client();

            serviceClient.GetApplicationConfigCompleted += new EventHandler <GetApplicationConfigCompletedEventArgs>(serviceClient_GetApplicationConfigCompleted);
            serviceClient.GetApplicationConfigAsync(callback);
        }
Example #2
0
        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();
        }