private void SwagItemsControl_Import(object sender, RoutedEventArgs e) { SwagOption opt = SwagItemsControlHelper.GetDataFromFile <SwagOption>(); if (opt != null) { SwagOptionControl soc = (SwagOptionControl)e.OriginalSource; soc.OptionCollection = (SwagOptionGroup)opt; } }
private void SwagItemsControl_Import(object sender, RoutedEventArgs e) { BooleanExpression exp = SwagItemsControlHelper.GetDataFromFile <BooleanExpression>(); if (exp != null) { BooleanExpressionControl bec = (BooleanExpressionControl)e.OriginalSource; bec.ExpressionContainer = (ICollection <BooleanExpression>)exp; } }