/// <summary>
        /// Функция просмотра сохраненных планов
        /// </summary>
        /// <param name="param"></param>
        private async void ViewPlans(object param)
        {
            IPlanLoader Plans = CommonServiceLocator.ServiceLocator.Current.GetInstance <IPlanLoader>();
            var         plans = await Plans.GetPlans();

            //await Application.Current.MainPage.Navigation.PushAsync(new ViewPlansPage(plans));
            ViewSaved(this, new ViewPlansEventArgs(plans));
        }
Beispiel #2
0
        private async void OpenSaved()
        {
            IPlanLoader planLoader = ServiceLocator.Current.GetInstance <IPlanLoader>();
            var         plans      = await planLoader.GetPlans();

            if (Globals.PlanTypes == null)
            {
                Globals.PlanTypes = new Dictionary <string, string>();
                Globals.PlanTypes.Add("1", "Рабочий день");
                Globals.PlanTypes.Add("2", "Выходной");
                Globals.PlanTypes.Add("3", "Больничный");
                Globals.PlanTypes.Add("4", "Отпуск");
            }
            ViewPlans(this, new ViewPlansEventArgs(plans));
        }