public NewProjectPopUp(double width, double height, string content) : base(width,height,content)
                {
                        this.Background = ThemeSelector.GetPopUpBackground();
                        _dateAlert = new StatsBlock();
                        _dateAlert.Text = "";
                        _dateAlert.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;

                        SetUpSeparator();
                        SetUpNameBlock();
                        SetUpNameBox();
                        SetUpAlertBlock();
                        SetUpStartDateBlock();
                        SetUpStartPicker();
                        SetUpEndDateBlock();
                        SetUpEndPicker();
                        SetUpButtons();

                        _container.Children.Add(_separator);
                        _container.Children.Add(_nameBlock);
                        _container.Children.Add(_nameBox);
                        _container.Children.Add(_alertBlock);
                        _container.Children.Add(_startDateBlock);
                        _container.Children.Add(_startDatePicker);
                        _container.Children.Add(_endDateBlock);
                        _container.Children.Add(_endDatePicker);
                        _container.Children.Add(_dateAlert);
                        _container.Children.Add(_validateButton);
                        _container.Children.Add(_cancelButton);

                }
                public NewProjectPanel(ValidateButton createProjectButton, CancelButton quitProjectButton, double width)
                {
                        this.Orientation = System.Windows.Controls.Orientation.Vertical;
                        _containerWidth = width;
                        //this.Background = new SolidColorBrush(Colors.Chartreuse);
                        
                        _chief = new Masterchief();

                        _titleBlock = new TextBlock();
                        _nameBox = new TextBox();
                        _checkBlock = new TextBlock();
                        _startDateBlock = new TextBlock();
                        _startDatePicker = new DatePicker();
                        _endDateBlock = new TextBlock();
                        _endDatePicker = new DatePicker();

                        _actionsPanel = new StackPanel();

                        _dateAlert = new StatsBlock();
                        _dateAlert.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;

                        SetUpTitleBlock(width);
                        SetUpNameBox(width);
                        
                        SetUpDateBlocks();
                        SetUpStartDatePicker(width);
                        SetUpEndDatePicker(width);
                        SetUpCreateProjectButton(createProjectButton, width);
                        SetUpQuitButton(quitProjectButton, width);

                        this.Children.Add(_titleBlock);
                        this.Children.Add(_nameBox);
                        this.Children.Add(_checkBlock);
                        this.Children.Add(_startDateBlock);
                        this.Children.Add(_startDatePicker);
                        this.Children.Add(_endDateBlock);
                        this.Children.Add(_endDatePicker);
                        this.Children.Add(_dateAlert);
                        this.Children.Add(createProjectButton);
                        this.Children.Add(quitProjectButton);

SetUpCheckBlock();
                }
                }//ctor()

                private void SetUpProjectsPanel()
                {
                        _projectsPanel = new StackPanel();
                        _projectsPanel.Orientation = Orientation.Horizontal;
                        _projectsPanel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
                        _projectsList = new Selector(Paths.PROJECTS_SAVE).SelectProjects();
                        _projects = new StatsBlock();

                        _projectsNB = _projectsList.Count;
                        _projectsNumber = new NumberBlock();
                        _projectsNumber.Text = _projectsNB.ToString();
                        _projects.Text = " projects.";
                        _projects.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

                        _projectsPanel.Children.Add(_projectsNumber);
                        _projectsPanel.Children.Add(_projects);
                }//SetUpProjectsPanel()
                private void SetUpProjectsIPPanel()
                {
                        _projectsIPPanel = new StackPanel();
                        _projectsIPPanel.Orientation = Orientation.Horizontal;
                        _projectsIPPanel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
                        _projectsIPNumber = new NumberBlock();
                        _projectsIPNB = GetProjectsIP();
                        _projectsIPNumber.Text = _projectsIPNB.ToString();
                        _projectsIP = new StatsBlock();
                        _projectsIP.Text = " projects in progress.";
                        _projectsIP.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

                        _projectsIPPanel.Children.Add(_projectsIPNumber);
                        _projectsIPPanel.Children.Add(_projectsIP);
                }
                private void SetUpDPanel()
                {
                        _projectsDPanel = new StackPanel();
                        _projectsDPanel.Orientation = Orientation.Horizontal;
                        _projectsDPanel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
                        _projectsDNumber = new NumberBlock();
                        _projectsDNumber.Text = _projectsDNB.ToString();

                        _projectsD = new StatsBlock();

                        if(_projectsDNumber.Text == "1")
                             _projectsD.Text = " project finished.";
                        else
                            _projectsD.Text = " projects finished.";
                                            
                        _projectsD.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

                        _projectsDPanel.Children.Add(_projectsDNumber);
                        _projectsDPanel.Children.Add(_projectsD);
                }
                private void SetUpPercentagePanel()
                {
                        _percentagePanel = new StackPanel();
                        _percentagePanel.Orientation = Orientation.Horizontal;
                        _percentagePanel.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;

                        _percentageNB = new NumberBlock();
                        _percentageNB.Text = Convert.ToInt64(_projectsDNB / _projectsNB * 100).ToString();


                        _percentageText = new StatsBlock();
                        _percentageText.Text = "% of finished projects (YAY ! ).";
                        _percentageText.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

                        _percentagePanel.Children.Add(_percentageNB);
                        _percentagePanel.Children.Add(_percentageText);
                }