private void List_ItemLongClick(object sender, AdapterView.ItemLongClickEventArgs e)
        {
            int pos = e.Position;

            new Android.Support.V7.App.AlertDialog.Builder(this)
            .SetTitle("Сигурни ли сте")

            .SetMessage("Искате да изтриете този момент?")

            .SetPositiveButton("Да", delegate
            {
                Data.RemoveMoment(adapter[pos]);
                adapter.Remove(adapter[pos]);
                adapter.NotifyDataSetChanged();
            })

            .SetNegativeButton("Не", delegate { })

            .Show();
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_main);

            toolbar = FindViewById <Toolbar>(Resource.Id.toolbar);
            SetActionBar(toolbar);
            ActionBar.SetDisplayShowTitleEnabled(false);
            toolbar.MenuItemClick += Toolbar_MenuItemClick;

            views = new List <View>();

            fragments = new List <Fragment>();

            Data.CreateMemoryTable();

            Data.CreateUserTable();

            Data.CreateCollegueTable();

            Data.CreateFamilyTable();

            Data.CreateFriendTable();

            btnSearch = FindViewById <Button>(Resource.Id.btnSearch);

            btnSearch.Click += BtnSearch_Click;

            editSearch = FindViewById <EditText>(Resource.Id.editSearch);

            btnAdd = FindViewById <Button>(Resource.Id.btnAdd);

            btnAdd.Click += BtnAdd_Click;

            list = FindViewById <ListView>(Resource.Id.listView);
            if (Intent.Extras != null)
            {
                if (Intent.Extras.Get("userId") != null)
                {
                    userId = (int)Intent.Extras.Get("userId");
                }
            }

            //Add views in list
            views.Add(btnSearch);
            views.Add(editSearch);
            views.Add(btnAdd);
            views.Add(list);


            moments = Data.GetMomentsByUserId(userId)
                      .OrderByDescending(m => m.Date)
                      .ToList();

            adapter = new MomentAdapter(this, moments);

            list.Adapter = adapter;

            list.ItemLongClick += List_ItemLongClick;

            list.ItemClick += List_ItemClick;

            adapter.NotifyDataSetChanged();
        }