Exemplo n.º 1
0
 void _newProjectItem_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
         NewProjectPopUp newP = new NewProjectPopUp(Dimensions.GetWidth() * 0.6, Dimensions.GetHeight() * 0.8, "New Project");
 }
                public StackPanel GetNewProjectPanel()
                {
                        _createProjectButton = new ValidateButton("Go On !", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 30, 0, 10), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _createProjectButton.MaxHeight = 60;
                        _createProjectButton.MouseDown += _createProjectButton_MouseDown;
                        _createProjectButton.MouseEnter += _createProjectButton_MouseEnter;
                        _createProjectButton.MouseLeave += _createProjectButton_MouseLeave;

                        _quitProjectButton = new CancelButton("Never mind", Dimensions.GetWidth() * 0.3, Dimensions.GetHeight() * 0.07, new System.Windows.Thickness(0, 0, 0, 0), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);
                        _quitProjectButton.MaxHeight = 60;
                        _quitProjectButton.MouseDown += _quitProjectButton_MouseDown;
                        _quitProjectButton.MouseEnter += _quitProjectButton_MouseEnter;
                        _quitProjectButton.MouseLeave += _quitProjectButton_MouseLeave;


                        //Creating the new proejct panel 

                        if(Dimensions.GetWidth() > 1900)
                        {
                                _subContainer = new CustomControls.Home.NewProjectPanel(_createProjectButton, _quitProjectButton, _containerPanel.Width);
                                ReloadLayout();
                        }

                        else
                        {
                                NewProjectPopUp newp = new NewProjectPopUp(Dimensions.GetWidth()*0.5,Dimensions.GetHeight()*0.8, "New project");
                        }
                        
                        return _mainPanel;
                       
                }