Exemple #1
0
 private void AddCriterionClick(object sender, RoutedEventArgs e)
 {
     _addCriterion       = new AddCriterion();
     _addCriterion.Owner = this;
     if (_addCriterion.ShowDialog() == true)
     {
         Loading.start();
         client.GetListCriterionsAsync();
     }
     else
     {
         Loading.start();
         client.GetListCriterionsAsync();
     }
 }
Exemple #2
0
        private void bt_criterion_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference1.criterions temp = dgCriteries.SelectedItem as ServiceReference1.criterions;
            _addCriterion       = new AddCriterion();
            _addCriterion.Owner = this;

            _addCriterion.id_criterion = temp.id_criterion;
            _addCriterion.TextBoxNameCriterion.Text = temp.name;
            _addCriterion.SaveCriterion.Content     = _addCriterion.edit_name;
            if (_addCriterion.ShowDialog() == true)
            {
                Loading.start();
                client.GetListCriterionsAsync();
            }
            else
            {
                Loading.start();
                client.GetListCriterionsAsync();
            }
        }