Пример #1
0
        private void ChooseResponsibleProjectButtonClicked(object sender, RoutedEventArgs routedEventArgs)
        {
            ResponsibleProjectChoose chooseResponsibleProject = new ResponsibleProjectChoose();

            chooseResponsibleProject.ShowDialog();
            _responsibleProject = ResponsibleProjectChoose.ObteinResponsibleProject();
            if (!object.ReferenceEquals(null, _responsibleProject))
            {
                TextBoxResponsibleProject.Text = _responsibleProject.Name + " " + _responsibleProject.LastName;
            }
        }
Пример #2
0
        private void ChooseResponsibleProjectButtonClicked(object sender, RoutedEventArgs routedEventArgs)
        {
            ResponsibleProjectChoose chooseResponsibleProject = new ResponsibleProjectChoose();

            chooseResponsibleProject.ShowDialog();
            ResponsibleProject responsibleProjectReceived = ResponsibleProjectChoose.ObteinResponsibleProject();

            if (responsibleProjectReceived != null)
            {
                TextBoxResponsibleProject.Text           = responsibleProjectReceived.Name + " " + responsibleProjectReceived.LastName;
                _responsibleProject.IdResponsibleProject = responsibleProjectReceived.IdResponsibleProject;
            }
        }