Пример #1
0
        async void OnButtonClicked(object sender, EventArgs e)
        {
            Recurring Habit_ = data_entry.GetHabit();
            int       job_id = await App.Database.SaveItemAsync(Habit_);

            data_entry.save_Habit_Data(Habit_);
            // habit_data_.Job_ID = job_id;

            this.refresh();
        }
        public override void SaveForm()
        {
            if (habit_data_ != null)
            {
                var Habit_ = data_entry.GetHabitData();
                int job_id = App.Database.SaveItemAsync(Habit_).Id;
            }
            else
            {
                var Habit_ = data_entry.GetHabit();
                int job_id = App.Database.SaveItemAsync(Habit_).Id;
            }

            // data_entry.save_Habit_Data(Habit_);
            base.SaveForm();
        }