Esempio n. 1
0
        /// <summary>
        /// Gets the list of layers from the server (according to the search criteria) and populates the
        /// local list of layers, and resets the currently viewed page to the first page.
        /// Finally, updates the UI to show the first page.
        /// </summary>
        private void BeginInitLayerList()
        {
            ServerModelNode oCurrServer = c_cbServers.SelectedItem as ServerModelNode;

#pragma warning disable 0618
            GetBuildersDelegate oDelegate = new GetBuildersDelegate(oCurrServer.GetBuilders);
#pragma warning restore 0618
            lock (m_oAsyncLock)
            {
                oDelegate.BeginInvoke(new AsyncCallback(EndInitLayerList), new InitLayerListDatapack(++m_iAsyncCookie, oDelegate));
            }
        }
Esempio n. 2
0
 internal InitLayerListDatapack(int c, GetBuildersDelegate m)
 {
     cookie = c;
     caller = m;
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the list of layers from the server (according to the search criteria) and populates the
 /// local list of layers, and resets the currently viewed page to the first page.
 /// Finally, updates the UI to show the first page.
 /// </summary>
 private void BeginInitLayerList()
 {
     ServerModelNode oCurrServer = c_cbServers.SelectedItem as ServerModelNode;
     #pragma warning disable 0618
     GetBuildersDelegate oDelegate = new GetBuildersDelegate(oCurrServer.GetBuilders);
     #pragma warning restore 0618
     lock (m_oAsyncLock)
     {
         oDelegate.BeginInvoke(new AsyncCallback(EndInitLayerList), new InitLayerListDatapack(++m_iAsyncCookie, oDelegate));
     }
 }
Esempio n. 4
0
 internal InitLayerListDatapack(int c, GetBuildersDelegate m)
 {
     cookie = c;
     caller = m;
 }