Esempio n. 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); });
        }
 /// <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" + System.Environment.NewLine, e.DirParcels.Count);
     // let the calling method know we have data
     waitQuery.Set();
 }
Esempio n. 3
0
 private void Directory_DirLandReply(object sender, DirLandReplyEventArgs e)
 {
     Client.Self.Chat("We are in Directory_DirLandReply Event", 0, ChatType.Normal);
     Console.WriteLine("We are now in Directory_DirLandReply Event");
     NbOfParcels = e.DirParcels.Count;
     Console.WriteLine("The number of parcels in this world is: " + NbOfParcels);
     foreach (DirectoryManager.DirectoryParcel parcel in e.DirParcels)
     {
         Console.WriteLine("Name: {0}\nPrice: {1}\nArea: {2}\n", parcel.Name, parcel.SalePrice.ToString(" '$L'#, #.00"), parcel.ActualArea.ToString("#,#"));
     }
 }
Esempio n. 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" + System.Environment.NewLine, e.DirParcels.Count);
            // let the calling method know we have data
            waitQuery.Set();
        }