Exemplo n.º 1
0
 public AttachEmployee(ILoadDataSender lastScreen, ProjectModuleEditVM projectModuleEditVM)
 {
     InitializeComponent();
     _lastScreen = lastScreen;
     _addEmployeeVM = new AddEmployeeToTheProjectVM(this, projectModuleEditVM, this);
     DataContext = _addEmployeeVM;
     fillCheckboxList();
 }
 public AddTeamToTheProjectVM(ILoadDataSender lastScreen, ProjectModuleEditVM projectModuleEditVM, AddTeamToTheProject addTeamToTheProject)
 {
     _lastScreen = lastScreen;
     _projectModuleEditVM = projectModuleEditVM;
     _addTeamToTheProject = addTeamToTheProject;
     AddButton = true;
     foreach (var item in projectModuleEditVM.TeamsCollection)
         _teamsToAddCollection.Add(item);
 }
 public AddTeamToTheProject(ILoadDataSender lastScreen, ProjectModuleEditVM projectModuleEditVM)
 {
     InitializeComponent();
     _lastScreen = lastScreen;
     _projectModuleEditVM = projectModuleEditVM;
     _addTeamToTheProject = new AddTeamToTheProjectVM(lastScreen, projectModuleEditVM, this);
     DataContext = _addTeamToTheProject;
     fillCheckboxList();
 }
 public ProjectModuleEdit(ILoadDataSender lastScreen, OrderVM order, ProjectVM parentProject = null)
 {
     InitializeComponent();
     _order = order;
     _lastScreen = lastScreen;
     _parentProject = parentProject;
     _projectModuleEditVM = new ProjectModuleEditVM(this, order, parentProject);
     DataContext = _projectModuleEditVM;
     fillCheckboxList();
     FormTitle.Text = "Add module";
 }
        public AddEmployeeToTheProjectVM(ILoadDataSender lastScreen, ProjectModuleEditVM projectModuleEditVM, AttachEmployee screen)
        {
            _screen = screen;
            foreach (var item in projectModuleEditVM.EmployeesCollection)
            {
                _employeesToAddCollection.Add(item);
            }

            if (projectModuleEditVM.SavedPositions != null)
            {
                _savedPositions = new List<User_ProjectVM>();

                foreach (var item in projectModuleEditVM.SavedPositions)
                    _savedPositions.Add(item);
            }

            _projectModuleEditVM = projectModuleEditVM;
            _lastScreen = lastScreen;
            LoadData(this);
        }