public Home()
                {
                        InitializeComponent();
                        _chief = new Masterchief();

                        PopulateLatestProjects();
                }
                public HomeLayoutNinja()
                {
                        _theme = new CustomTheme();
                        _chief = new Masterchief();

                        
                        SetUpMainAndContainer();

                        SetUpHeader();

                        SetUpItems();

                        SetUpLatestProjects();

                        SetUpFooter();
                        
                }//HomeLayoutNinja()
                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();
                }
                public OpenProjectPanel(List<string> projectsName, double width)
                {
                        this.Orientation = System.Windows.Controls.Orientation.Horizontal;
                        this.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;

                        _chief = new Masterchief();
                        _width = width;
                       

                        SetUpProjectsListPanel(width);
                        SetUpProjectsPanel();
                        SetUpOpenBlock( width);
                        SetUpBlocks(projectsName, width);
                        SetUpNavigationPanel(width);
                        SetUpLeaveButton(width);
                        SetUpActionsPanel(width);

                        AddControls();
                }
Ejemplo n.º 5
0
                public Home()
                {
                        try
                        {
                                //View.Debug.Debug maDeb = new Debug.Debug();
                                //maDeb.Show();

                                //Sketches.Dark.DarkProject darkP = new Sketches.Dark.DarkProject();
                                //darkP.Show();

                                //Sketches.Light.LightProject lightP = new Sketches.Light.LightProject();
                                //lightP.Show();


                                InitializeComponent();
                                SetFonts();
                                SetDimensions();
                                ThemeSelector.InitializeTheme();
                                TestFonts t = new TestFonts();
                                // t.Show();


                                FontsHolder.Visibility = System.Windows.Visibility.Hidden;
                                _chief = new Masterchief();
                                _ninja = new HomeLayoutNinja();
                                _mainPanel = new StackPanel();
                                _mainPanel = _ninja.GetLayout();

                                MainGrid.Children.Add(_mainPanel);

                                this.KeyDown += Home_KeyDown;
                                SetClickHandling();
                                this.Show();

                        }//try
                        catch (System.Exception e)
                        {

                                LaunchException l = new LaunchException(e.Message, e.ToString(), e.Data.Values.ToString());
                        }


                }//Home()...family, future