Exemple #1
0
        private void bt_project_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference1.myProject temp = dataGrid.SelectedItem as ServiceReference1.myProject;

            _CardExpertiseProject                          = new CardExpertiseProject();
            _CardExpertiseProject.Owner                    = this;
            _CardExpertiseProject.id_project               = temp.id_project;
            _CardExpertiseProject.textBox.Text             = temp.name_project;
            _CardExpertiseProject.textBox1.Text            = temp.lead_project;
            _CardExpertiseProject.textBox2.Text            = temp.fos;
            _CardExpertiseProject.textBox3.Text            = temp.grnti_project;
            _CardExpertiseProject.datePicker1.SelectedDate = (temp.begin_project);
            _CardExpertiseProject.datePicker2.SelectedDate = temp.end_project;
            _CardExpertiseProject.tbxOrganization.Text     = temp.org_project;
            _CardExpertiseProject.textBox6.Text            = temp.money_project.Trim(' ');
            _CardExpertiseProject.textBox7.Text            = temp.email_project;
            _CardExpertiseProject.client.GetListExpertForProjectAsync(temp.id_project);
            _CardExpertiseProject.textBox4.Text = temp.name_expertise;
            if (temp.date_expertise.ToShortDateString() != "01.01.0001")
            {
                _CardExpertiseProject.textBox5.Text = temp.date_expertise.ToShortDateString();
            }

            client.GetListAuthorsForProjectAsync(temp.id_project);


            //MessageBox.Show("test");
        }
        private void btnGoToProjectCard_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference1.myProjectForExpertiseCard temp = dgExpertiseProjectList.SelectedItem as ServiceReference1.myProjectForExpertiseCard;

            _CardExpertiseProject       = new CardExpertiseProject(temp.id_project);
            _CardExpertiseProject.Owner = this;
            _CardExpertiseProject.ShowDialog();
        }