bitwarden-android/src/App/Pages/Settings/SettingsPage.xaml.cs

38 lines
847 B
C#
Raw Normal View History

2019-03-28 03:12:44 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
2019-03-29 00:10:10 +03:00
using Xamarin.Forms.Xaml;
2019-03-28 03:12:44 +03:00
2019-03-29 00:10:10 +03:00
namespace Bit.App.Pages
2019-03-28 03:12:44 +03:00
{
2019-05-14 18:53:41 +03:00
public partial class SettingsPage : BaseContentPage
2019-03-28 03:12:44 +03:00
{
2019-05-14 16:09:35 +03:00
private SettingsPageViewModel _vm;
2019-03-29 06:52:33 +03:00
public SettingsPage()
2019-03-28 03:12:44 +03:00
{
InitializeComponent();
2019-05-14 16:09:35 +03:00
_vm = BindingContext as SettingsPageViewModel;
_vm.Page = this;
2019-03-28 03:12:44 +03:00
}
2019-05-14 18:53:41 +03:00
private void RowSelected(object sender, SelectedItemChangedEventArgs e)
{
((ListView)sender).SelectedItem = null;
if(!DoOnce())
{
return;
}
if(!(e.SelectedItem is SettingsPageListItem item))
{
return;
}
// TODO
}
2019-03-28 03:12:44 +03:00
}
}