public void Load()
        {
            Name = "Members";
            //filter = "None";

            CodeProjectDatabase database = new CodeProjectDatabase();
            allMembers = database.GetMembers();

            var members = allMembers.Select(x => new CodeprojectMemberViewModel(x, gotoPageAction, this.DeleteMember)).ToList();
            Members = new ObservableCollection<CodeprojectMemberViewModel>(members);
        }
		public override void CommitEditingStyle (UITableView tableView, UITableViewCellEditingStyle editingStyle, MonoTouch.Foundation.NSIndexPath indexPath)
		{
			if(editingStyle == UITableViewCellEditingStyle.Delete)
			{
				CodeProjectMember memberToDelete = MemberList [indexPath.Row];
				CodeProjectDatabase database = new CodeProjectDatabase ();
				database.DeleteMember (memberToDelete.Id);

				MemberList = database.GetMembers();
				tableView.ReloadData ();
			}
		}
		public override bool OnContextItemSelected (IMenuItem item)
		{
			AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)item.MenuInfo;
			CodeProjectMember memberToDelete = members [info.Position];
			CodeProjectDatabase db = new CodeProjectDatabase ();
			db.DeleteMember (memberToDelete.Id);

			members = db.GetMembers ();
			ListAdapter = new CodeProjectMemberAdapter (this.Activity, members);

			return true;
		}
		public void LoadMembers() {
			CodeProjectDatabase db = new CodeProjectDatabase ();
			members = db.GetMembers ();

			ListAdapter = new CodeProjectMemberAdapter (this.Activity, members);
		}
		void Refresh()
		{
			progressView.StartAnimating ();
			CodeProjectDatabase db = new CodeProjectDatabase ();
			MemberList = db.GetMembers();

			MemberListTable.Source = new CodeProjectMemberListDataSource(MemberList);
			MemberListTable.ReloadData ();

			RefreshFinished ();
		}
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			progressView = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.Gray);
			progressView.Center = new PointF (this.View.Frame.Width / 2, this.View.Frame.Height / 2);
			this.View.AddSubview (progressView);

			CodeProjectDatabase db = new CodeProjectDatabase ();
			MemberList = db.GetMembers();

			MemberListTable.Source = new CodeProjectMemberListDataSource(MemberList);

			MemberSearchBarController.SearchResultsWeakDataSource = this;
			MemberSearchBarController.WeakDelegate = this;

		}