Пример #1
0
        private void Copy(object sender, RoutedEventArgs e)
        {
            TransUnit obj  = ((FrameworkElement)sender).DataContext as TransUnit;
            var       tmp  = obj.Source;
            string    tmp1 = obj.Source;

            obj.Target = obj.Source;
            var placeholder = obj.Source;
        }
Пример #2
0
        public object Convert(object[] value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return(null);
            }
            if (value.Length > 0)
            {
                TransUnit obj = (TransUnit)value[1];

                if (obj.Meaning == null || String.IsNullOrWhiteSpace(obj.Meaning))
                {
                    return(obj.Description);
                }

                return(obj.Meaning);
            }
            return(null);
        }