Exemple #1
0
            /// <summary>
            /// Visits a payload element whose root is a LinkCollection.
            /// </summary>
            /// <param name="payloadElement">The root node of payload element being visited.</param>
            public void Visit(LinkCollection payloadElement)
            {
                this.isRootElement = false;
                this.writer.StartArrayScope();
                for (int i = 0; i < payloadElement.Count(); i++)
                {
                    payloadElement[i].Accept(this);
                }

                this.writer.EndScope();
            }
 public void FillList(LinkCollection IPList)
 {
     //burda elə etmək lazımdır ki, hər dəfə təzə userə click olunanda yenilənsin
     if (IPList.Count() == 0)
     {
         papulateList(IPList);
     }
     else
     {
         IPList.Clear();
         papulateList(IPList);
     }
 }
            /// <summary>
            /// Visits a payload element whose root is a LinkCollection.
            /// </summary>
            /// <param name="payloadElement">The root node of payload element being visited.</param>
            public void Visit(LinkCollection payloadElement)
            {
                this.isRootElement = false;
                this.writer.StartArrayScope();
                for (int i = 0; i < payloadElement.Count(); i++)
                {
                    payloadElement[i].Accept(this);
                }

                this.writer.EndScope();
            }