Пример #1
0
        public void Inits()
        {
            Data   = Settings.DataList;
            keys   = new List <string>();
            values = new List <string>();
            foreach (var item in Data)
            {
                keys.Add(item.Key);
                values.Add(item.Value);
            }
            var source = new ShortcutsTableViewSource(listview, this, keys, values);

            listview.Source = source;

            listview.ReloadData();
        }
Пример #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();



            this.NavigationController.NavigationBar.TopItem.Title = "Shortcuts";
            this.EdgesForExtendedLayout = UIRectEdge.None;
            Inits();
            var source = new ShortcutsTableViewSource(listview, this, keys, values);

            listview.Source = source;

            listview.ReloadData();
            btnAdd.TouchUpInside += BtnAdd_TouchUpInside;
            // Perform any additional setup after loading the view, typically from a nib.
        }