Esempio n. 1
0
        private void WashDay_Edited(object sender, WashingDayDefinitionControl.WashingDayCellEventArgs e)
        {
            var contr  = new WashingDayEditorController(e.Controller.GetModel(), App.MainSession.GetAllDefinitions(), this.mAlarmController);
            var editor = new WashDayEditor(mMainSessionController, contr, false, mHairbl);

            Navigation.PushAsync(editor);
        }
Esempio n. 2
0
        private void WashDay_StartCareDay(object sender, WashingDayDefinitionControl.WashingDayCellEventArgs e)
        {
            var wdInstance = e.Controller.GetWashingDayInstance(ScheduleController.GetToday());

            var instancePage = new WashDayInstance(e.Controller.GetModel(), wdInstance, mHairbl);

            Navigation.PushAsync(instancePage, true);
        }
Esempio n. 3
0
        private async void WashDay_Removed(object sender, WashingDayDefinitionControl.WashingDayCellEventArgs e)
        {
            var answer = await mPage.DisplayAlert(AppResources.DeleteWashDay, AppResources.DeleteWashdayConfirmation, AppResources.Delete, AppResources.Cancel);

            if (answer)
            {
                mAlarmController.DeleteWashDay(e.Controller.GetModel().ID);
                mMainSessionController.DeleteWashDay(e.Controller.GetModel());
                RefreshList();
            }
        }