Esempio n. 1
0
        private void OnAccept()
        {
            _persistor.DoubleListPersister(_devCtrl.GetDevicesNames(), PersistenceController.DoubleLists.Device);
            _persistor.DoubleListPersister(_ktc.GetMultiboxData(), PersistenceController.DoubleLists.Kitchen);
            _persistor.DoubleListPersister(_tc.GetMultiboxData(), PersistenceController.DoubleLists.Type);

            _persistor.RecipeKitchen = _ktc.GetValue();
            _persistor.RecipeType    = _tc.GetValue();
            _persistor.RecipeText    = _textCtrl.GetText();
            _persistor.RecipeLink    = _linkCtrl.GetText();
            _persistor.Ingreds       = _ingrCtrl.GetData();
            _persistor.PersistIngredsChanges(_ingrCtrl.GetNames());

            _persistor.RecipeName            = _rnc.GetValue();
            _persistor.RecipeSpecificDevices = _devCtrl.GetDevicesForRecipe();
            _persistor.PersistRecipe();

            Clear();
            _rnc.Unlock();
        }