private void btnGoToExpertCard_Click(object sender, RoutedEventArgs e)
        {
            myExpertiseComissionResultRow temp = dgExpertiseExpertCommissionResult.SelectedItem as myExpertiseComissionResultRow;

            _ExpertCard       = new ExpertCard(temp.id_expert);
            _ExpertCard.Owner = this;
            _ExpertCard.ShowDialog();
        }
Example #2
0
        private void bt_expert_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference1.ExpertsWithCountExpertise temp = dataGrid1.SelectedItem as ServiceReference1.ExpertsWithCountExpertise;

            _ExpertCard               = new ExpertCard();
            _ExpertCard.Owner         = this;
            _ExpertCard.textBox.Text  = temp.surname_expert;
            _ExpertCard.textBox1.Text = temp.name_expert;
            _ExpertCard.textBox2.Text = temp.patronymic_expert;
            _ExpertCard.textBox3.Text = temp.job_expert;
            _ExpertCard.textBox7.Text = temp.post_expert;
            _ExpertCard.textBox4.Text = temp.degree_expert;
            _ExpertCard.textBox5.Text = temp.rank_expert;
            _ExpertCard.textBox6.Text = temp.contacts_expert;
            _ExpertCard.textBox8.Text = temp.login_expert;
            _ExpertCard.textBox9.Text = temp.password_expert;
            if (temp.commision_chairman)
            {
                _ExpertCard.chkbxChairman.IsChecked = true;
            }
            else
            {
                _ExpertCard.chkbxChairman.IsChecked = false;
            }
            _ExpertCard.chkbxChairman.IsEnabled = false;
            _ExpertCard.id_expert = temp.id_expert;
            _ExpertCard.client.Expertise_ExpertAsync(temp.id_expert);
            _ExpertCard.textBlock.Text        = "";
            _ExpertCard.dataGrid.ItemsSource  = null;
            _ExpertCard.tabControl.Visibility = Visibility.Visible;
            _ExpertCard.listFOSCurrentExpert.Clear();

            for (int i = 0; i < temp.ListFOS.ToList().Count; i++)
            {
                int j = i + 1;
                _ExpertCard.listFOSCurrentExpert.Add(temp.ListFOS[i]);
                _ExpertCard.textBlock.Text += j + " " + temp.ListFOS[i].name_fos + "\r\n";
                _ExpertCard.j = j;
            }
            if (_ExpertCard.ShowDialog() == true)
            {
                client.GetListExpertsWithCountExpertiseAsync();
            }
            else
            {
                client.GetListExpertsWithCountExpertiseAsync();
            }
        }
Example #3
0
 //новый эксперт
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     _ExpertCard       = new ExpertCard();
     _ExpertCard.Owner = this;
     _ExpertCard.tabControl.Visibility = Visibility.Hidden;
     _ExpertCard.comboBox.Visibility   = Visibility.Visible;
     _ExpertCard.button1.Visibility    = Visibility.Visible;
     _ExpertCard.button2.Visibility    = Visibility.Hidden;
     _ExpertCard.button.Content        = "Сохранить";
     _ExpertCard.textBox.IsReadOnly    = false;
     _ExpertCard.textBox1.IsReadOnly   = false;
     _ExpertCard.textBox2.IsReadOnly   = false;
     _ExpertCard.textBox3.IsReadOnly   = false;
     _ExpertCard.textBox4.IsReadOnly   = false;
     _ExpertCard.textBox5.IsReadOnly   = false;
     _ExpertCard.textBox6.IsReadOnly   = false;
     _ExpertCard.textBox7.IsReadOnly   = false;
     _ExpertCard.textBox8.IsReadOnly   = false;
     _ExpertCard.textBox9.IsReadOnly   = false;
     _ExpertCard.ShowDialog();
 }