Beispiel #1
0
        private void OnRelationEditWeightStarted(object sender, RelationEditWeightViewModel viewModel)
        {
            RelationEditWeightDialog view = new RelationEditWeightDialog {
                DataContext = viewModel
            };

            view.ShowDialog();
        }
Beispiel #2
0
 private void ChangeRelationWeightExecute(object parameter)
 {
     if ((SelectedConsumer != null) && (SelectedProvider != null))
     {
         IEnumerable <IDsmRelation> relations = _application.FindRelations(SelectedConsumer, SelectedProvider);
         IDsmRelation relation = relations.FirstOrDefault();
         if (relation != null)
         {
             RelationEditWeightViewModel relationEditViewModel = new RelationEditWeightViewModel(_application, relation);
             RelationEditWeightStarted?.Invoke(this, relationEditViewModel);
         }
     }
 }