예제 #1
0
        protected override void OnAppearing()
        {
            base.OnAppearing();
            var pageService = new PageService();

            ViewModel = new DatLenhPageViewModel(pageService);
            ViewModel.LoadDataCommand.Execute(null);
            btnXacNhan.TextColor = Color.White;
        }
        public DatLenhPage()
        {
            InitializeComponent();
            var pageService = new PageService();

            ViewModel = new DatLenhPageViewModel(pageService);
            //mess subb
            MessagingCenter.Subscribe <DatLenhPageViewModel>(this, "fade PriceBox", FadePriceBox);
            //mess unsub
            MessagingCenter.Unsubscribe <DatLenhPage>(this, "fade PriceBox");
        }
예제 #3
0
 private void FocusID(DatLenhPageViewModel obj)
 {
     txtMa.Focus();
 }
예제 #4
0
 private void FocusGia(DatLenhPageViewModel obj)
 {
     txtGia.Focus();
 }
 private void FadePriceBox(DatLenhPageViewModel obj)
 {
     FadeLayout(framePrice);
 }