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(); }
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. }