public ListViewPage()
        {
            InitializeComponent();
            var viewModel = new ListViewPageViewModel();

            ListView.ItemsSource = viewModel.Messages;
            this.BindingContext  = viewModel;
        }
Esempio n. 2
0
 public void SetData(int index, Entry code, Entry cost, Entry shares)
 {
     if (code.Text != "" && cost.Text != "" && shares.Text != "")
     {
         string SaveData = code.Text + "," + cost.Text + "," + shares.Text;
         ListViewPageViewModel.DataSave(index, SaveData);
         Navigation.PopAsync();
     }
     else
     {
         DisplayAlert("Entry Command Meseg", "未入力の項目があります。", "OK");
     }
 }
Esempio n. 3
0
        public ListViewPage()
        {
            InitializeComponent();

            BindingContext = new ListViewPageViewModel();
        }
Esempio n. 4
0
 public ListViewPage()
 {
     InitializeComponent();
     _viewmodel = (ListViewPageViewModel)BindingContext;
 }