示例#1
0
 public Woks()
 {
     BindingContext = viewModel = new WoksViewModel();
     MessagingCenter.Subscribe <Object>(this, "Wok", async(obj) =>
     {
         viewModel.LoadSubcatsCommand.Execute(null);
         tabs.SelectedItem = viewModel.tabs[0];
     });
     InitializeComponent();
 }
示例#2
0
 public WokCreate()
 {
     InitializeComponent();
     BindingContext = viewModel = new WoksViewModel();
     viewModel.LoadSubcatsCommand.Execute(null);
 }