public void btnAddAction_Click(object sender, RoutedEventArgs e) { var w = new AddAnyActionWindow(Area.Actions, Area.ObjectId); if (w.ShowDialog() != true) return; w.Act.SourceObjectId = Area.ObjectId; Area.Actions.Add(w.Act); RefreshActions(); }
public void btnAddAction_Click(object sender, RoutedEventArgs e) { var w = new AddAnyActionWindow(_onSuccessActions, _draggedPartnerId) { cbiOnClick = {IsEnabled = false}, cbiOnHover = {IsEnabled = false}, cbiOnDropSuccess = {IsEnabled = true, IsSelected = true} }; if (w.ShowDialog() != true) return; _onSuccessActions.Add(w.Act); RefreshActions(); }