Пример #1
0
 private void GoToProject(object sender, System.Windows.Input.MouseEventArgs e)
 {
         
         Captain oCaptain = new Captain();
         oCaptain.ToProject(this.Text);
 }
                void _createButton_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
                {
                        if (_nameBox.Text == "" || _nameBox.Text == "Name of your project here")
                        {
                                NullInputPopUp popup = new NullInputPopUp();
                        }

                        else if (  _startDatePicker.SelectedDate == null)
                        {
                                NullInputPopUp popup = new NullInputPopUp();
                        }
                        else if (_endDatePicker.SelectedDate == null  )
                        {
                                NullInputPopUp popup = new NullInputPopUp();
                        }

                        else if(isExistingProject(_nameBox.Text))
                        {
                                

                                AlreadyExistingProject aep = new AlreadyExistingProject(Dimensions.GetWidth()/3,Dimensions.GetHeight()/4,ControlsValues.EXISTING_PROJECT);
                        }

                        else
                        {
                                _chief.InsertProject(_nameBox.Text, _startDatePicker.Text, _endDatePicker.Text);
                                Captain oCaptain = new Captain();
                                oCaptain.ToProject(_nameBox.Text);
                        }

                }
 void _openButton_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
         if (_selectedBlock != null)
         {
                 Captain oCaptain = new Captain();
                 oCaptain.ToProject(_selectedBlock._block.Text);
         }
 }