Esempio n. 1
0
        void Add(object sender, System.EventArgs e)
        {
            constants.senddata.Clear();
            var page = new SelectDay();

            add_btn.IsEnabled = false;
            NavigationPage.SetHasNavigationBar(page, false);
            Navigation.PushAsync(page);
            add_btn.IsEnabled = true;
        }
Esempio n. 2
0
        void Edit(object sender, System.EventArgs e)
        {
            constants.senddata.Clear();
            var item = (MenuItem)sender;

            ids = item.CommandParameter.ToString();
            var selectedItem = ((EmployeeScheduleViewmodel)this.BindingContext).MYschdeule2.FirstOrDefault(d => d.Id == ids);

            constants.senddata.Add(selectedItem);
            var page = new SelectDay();

            NavigationPage.SetHasNavigationBar(page, false);
            Navigation.PushAsync(page);
        }