Exemple #1
0
        public PropertyActionProvider(App app)
        {
            _app = app;

            _actions   = LoadFromProperties <Actions>(ACTIONS_KEY);
            _actionLog = LoadFromProperties <ActionLog>(ACTION_LOG_KEY);

            _actions.actionEdited  += WriteState;
            _actions.actionCreated += (a) => WriteState();
            _actions.actionDeleted += (a) => WriteState();
        }
Exemple #2
0
        public App()
        {
            _actionProvider = new PropertyActionProvider(this);

            actions = _actionProvider.GetActions();

            actionLog = _actionProvider.GetActionLog();

            actions.actionDeleted += actionLog.OnActionRemoved;

            Logging.logger.WriteMessage(actionLog);

            InitializeComponent();

            MainPage = new NavigationPage(new TimeLoggingApp.MainPage());
        }