protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

              SetContentView(Resource.Layout.pulltorefreshlist);

              //Ws Start
            WebService.Extern ws = new Extern();
            string wsResult = ws.GetComenzi2();
              //wsResult = WebServiceSfa.GetComenzi2();
              //tableItems.Clear();

              const string sSeparatori1 = "@";
              const string sSeparatori2 = "#";
              string[] sAtomi1 = wsResult.Split(sSeparatori1.ToCharArray());

              int index1;
              for (index1 = 0; index1 < sAtomi1.Length; index1 = index1 + 1)
              {
              if (sAtomi1[index1].Length <= 0) continue;

              string[] sAtomi2 = sAtomi1[index1].Split(sSeparatori2.ToCharArray());
              int idComanda = Convert.ToInt32(sAtomi2[0]);
              string denumire = sAtomi2[1];
              string dataSiOra = sAtomi2[2];

              tableItems.Add(new TableItem { id = idComanda.ToString(), nume = denumire, dataSiOra = dataSiOra });
              } //WS end

              mListItems = new List<string>();
              foreach (TableItem item in tableItems)
              mListItems.Add(item.nume);

              ArrayAdapter<string> adapter = new ArrayAdapter<string>(this, Android.Resource.Layout.SimpleListItem1, mListItems);
              ListAdapter = adapter;

              PullToRefreshListView plv = ListView as PullToRefreshListView;

              plv.SetOnRefreshListener(new RefreshListener(this));

              // Create your application here
        }
        public static string GetComenzi2()
        {
            //WebService.PreluareDate ws = null;
            Extern ws = null;
            //string result = "";

            try
            {
                //var ws = new Extern();
                //ws.Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy();///
                //result = ws.GetComenzi2();
                //ws = new webService.TestAndi();
                //ws.Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy();
                //var ws = new Extern();

                ws = new Extern();
                return ws.GetComenzi2();
            }
            finally
            {
                ws = null;
            }
        }