Пример #1
0
        private void BlueprintView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (DataContext is ViewModels.BlueprintViewModel)
            {
                ViewModels.BlueprintViewModel blueprint = (ViewModels.BlueprintViewModel)DataContext;

                blueprint.RaiseInsertRequested();
            }
        }
Пример #2
0
        private void SearchTextBox_TextChanged(object sender, TextChangedEventArgs e)
        {
            if (DataContext is ViewModels.BlueprintViewModel)
            {
                ViewModels.BlueprintViewModel blueprint = (ViewModels.BlueprintViewModel)DataContext;

                blueprint.SearchCommand.Execute(null);
            }
        }