Esempio n. 1
0
        public TaskDetailViewModel(ITaskRepository taskRepository)
        {
            this.taskRepository = taskRepository;

            AddEditTaskViewModel       = ContainerHelper.Container.Resolve <AddEditTaskViewModel>();
            AddEditAttachmentViewModel = ContainerHelper.Container.Resolve <AddEditAttachmentViewModel>();
            AddEditCommentViewModel    = ContainerHelper.Container.Resolve <AddEditCommentViewModel>();
            AddEditLinkViewModel       = ContainerHelper.Container.Resolve <AddEditLinkViewModel>();
            AddEditSubTaskViewModel    = ContainerHelper.Container.Resolve <AddEditSubTaskViewModel>();
            AttachmentListViewModel    = ContainerHelper.Container.Resolve <AttachmentListViewModel>();
            CommentListViewModel       = ContainerHelper.Container.Resolve <CommentListViewModel>();
            LinkListViewModel          = ContainerHelper.Container.Resolve <LinkListViewModel>();
            SubTaskListViewModel       = ContainerHelper.Container.Resolve <SubTaskListViewModel>();

            EditTaskCommand      = new RelayCommand(OnEditTask);
            ClosePopUpCommand    = new RelayCommand(ClosePopUpView);
            AddAttachmentCommand = new RelayCommand(AddAttachment);
            AddCommentCommand    = new RelayCommand(AddComment);
            AddLinkCommand       = new RelayCommand(AddLink);
            AddSubTaskCommand    = new RelayCommand(AddSubTask);
            DeleteTaskCommand    = new RelayCommand(DeleteTask);
            ExpandAllCommand     = new RelayCommand(ExpandAll);
            CloseTaskCommand     = new RelayCommand(CloseTask);

            AddEditAttachmentViewModel.Done += ClosePopUpView;
            AddEditTaskViewModel.Done       += ClosePopUpView;
            AddEditCommentViewModel.Done    += ClosePopUpView;
            AddEditLinkViewModel.Done       += ClosePopUpView;
            AddEditSubTaskViewModel.Done    += ClosePopUpView;
            AddEditTaskViewModel.TaskAdded  += TaskAdded;

            PopUpViewModel = new PopUpViewModel();
        }
Esempio n. 2
0
        public PopUp(String Name, String Departement)
        {
            InitializeComponent();
            var vm = new PopUpViewModel();

            this.BindingContext = vm;
            N.Text = Name;
            D.Text = Departement;
        }
        private UIElement CreatePopup()
        {
            PopUpView      view      = new PopUpView();
            PopUpViewModel viewModel = new PopUpViewModel(
                this.accountsOverviewViewModel,
                this.addAccountDialogViewModel,
                this.eventBroker);

            view.DataContext = viewModel;
            return(view);
        }
        public static async Task PushModalAsync(PopUpKeys popUpKey, params object[] parameters)
        {
            switch (popUpKey)
            {
            case PopUpKeys.Mensaje:
                PopUpViewModel.GetInstance().Mensaje = (string)parameters[0];
                await IsPopUpInstanced(new MnesajePopUp());

                break;
            }
        }
        public ProjectOverviewViewModel()
        {
            Debug.WriteLine("ProjectOverviewViewModel");

            ProjectListViewModel    = ContainerHelper.Container.Resolve <ProjectListViewModel>();
            TaskListViewModel       = ContainerHelper.Container.Resolve <TaskListViewModel>();
            AddEditProjectViewModel = ContainerHelper.Container.Resolve <AddEditProjectViewModel>();
            AddEditTaskViewModel    = ContainerHelper.Container.Resolve <AddEditTaskViewModel>();

            PopUpViewModel = new PopUpViewModel();

            ProjectListViewModel.AddProjectRequested  += ShowAddProject;
            ProjectListViewModel.EditProjectRequested += ShowEditProject;
            taskListViewModel.AddTaskRequested        += ShowAddProjectTask;

            AddEditProjectViewModel.Done += AddEditProjectClose;

            AddEditTaskViewModel.TaskAdded += OnTaskAddedDone;
            AddEditTaskViewModel.Done      += ClosePopUpView;
        }
Esempio n. 6
0
 public ProfessionPopUp(Job job)
 {
     BindingContext = new PopUpViewModel(Navigation, job);
     InitializeComponent();
 }
Esempio n. 7
0
 public MnesajePopUp()
 {
     InitializeComponent();
     BindingContext = PopUpViewModel.GetInstance();
 }