private void CleanValues() { ActionAdd.CleanValues(); ObservationAdd.CleanValues(); ActionList.CleanValues(); LabelValidationScenario.Content = String.Empty; }
private void ButtonAddAction_Click(object sender, RoutedEventArgs e) { if (ActionAdd.SelectedWARecordType == null) { ActionAdd.LabelValidation.Content = "It is necessary to choose an action."; } else if (ActionList.AddAction(ActionAdd.Time, ActionAdd.SelectedWARecordType.Id, ActionAdd.SelectedWARecordType.Duration)) { _scenarioDescription.addACS(ActionAdd.SelectedWARecordType, ActionAdd.Time); ActionAdd.CleanValues(); } else { ActionAdd.LabelValidation.Content = "Two actions at the some time are forbidden."; } }