示例#1
0
        public Settings_Page()
        {
            InitializeComponent();
            var datastore = new DataStores();

            BindingContext = new Settings_ViewModel(Navigation, datastore);
        }
        public Settings()
        {
            this.InitializeComponent();

            ViewModel        = new Settings_ViewModel();
            this.DataContext = ViewModel;

            SendCSV.Click += (s, e) =>
            {
                ViewModel.SendCSVviaEmail();
            };

            SendJSON.Click += (s, e) =>
            {
                ViewModel.SendJSONviaEmail();
            };
        }