Пример #1
0
        private void Directory_OnDirLandReply(object sender, DirLandReplyEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke((MethodInvoker)delegate { Directory_OnDirLandReply(sender, e); });
                return;
            }

            BeginInvoke((MethodInvoker)delegate { LandReply(e.DirParcels); });
        }
Пример #2
0
 public virtual void Directory_OnDirLandReply(Object sender, DirLandReplyEventArgs e) { OnEvent("On-Dir-Land-Reply", paramNamesOnDirLandReply, paramTypesOnDirLandReply, e.DirParcels); }
 /// <summary>Raises the DirLandReply event</summary>
 /// <param name="e">A DirLandReplyEventArgs object containing the
 /// data returned from the data server</param>
 protected virtual void OnDirLand(DirLandReplyEventArgs e)
 {
     EventHandler<DirLandReplyEventArgs> handler = m_DirLandReply;
     if (handler != null)
         handler(this, e);
 }
Пример #4
0
 /// <summary>
 /// Process the search reply
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Directory_DirLand(object sender, DirLandReplyEventArgs e)
 {
     foreach (DirectoryManager.DirectoryParcel searchResult in e.DirParcels)
     {
         // add the results to the StringBuilder object that contains the results
         result.AppendLine(searchResult.ToString());
     }
     result.AppendFormat("{0} results" + Environment.NewLine, e.DirParcels.Count);
     // let the calling method know we have data
     waitQuery.Set();
 }