示例#1
0
        public override void ViewDidLoad()
        {
            _ViewController = this;
            Titile();
            DataSql dataSql = new DataSql();


            dataSql.fileSql(library.File(2));// ceart data file
            //  DataSql.data.Clear();
            Nettab.bar.plusbutton += Btn_Clicked;

            base.ViewDidLoad();
            s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); // Perform any additional setup after loading the view, typically from a nib.


            local _local = new local();

            listdns = _local.retDataString(0, 0);
            List <int> listPort = _local.Retdatainger(1, 0);


            //dataSql.process(library.File(2),library.SELECT(0), null);
            // listdns = DataSql.data;
            this.tabview.Source = new sourc(_local.retDataString(0, 0), _local.Retdatainger(1, 0), tabview);// sends to source
        }
示例#2
0
        private void Sourcetabview()
        {
            //   dataSql.Rowdata(0);
            //   dataSql.process("ip.db3", GetEnumDescription(textcommad.SELECT),null);
            //  listdns.Clear();



            local _local = new local();


            this.tabview.Source = new sourc(_local.retDataString(0, 0), _local.Retdatainger(1, 0), tabview);
            using (var indexPath = NSIndexPath.FromRowSection(0, 0))
                tabview.InsertRows(new[] { indexPath }, UITableViewRowAnimation.Automatic);
        }