Exemplo n.º 1
0
        private void ClearAllMessages(object sender, RoutedEventArgs e)
        {
            TraceControlViewModel model = (TraceControlViewModel)this.DataContext;

            if (model != null)
            {
                model.CommandOutputs.Clear();
            }
        }
Exemplo n.º 2
0
        void TraceControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            var model = e.NewValue as TraceControlViewModel;

            if (model != null)
            {
                model.PropertyChanged += Model_PropertyChanged;
                Model = model;
            }
        }
Exemplo n.º 3
0
        void CopyMessage(object sender, RoutedEventArgs e)
        {
            TraceControlViewModel model = (TraceControlViewModel)this.DataContext;

            if (model != null)
            {
                if (cView.SelectedValue != null)
                {
                    Clipboard.SetText(cView.SelectedValue.ToString());
                }
            }
        }