private void DataGrid_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { try { if (DataGridObject.SelectedItem == null) { return; } selectedRow = DataGridObject.SelectedItem as DscResourceClass; selectedRow.ExpandResource(); DataGridNameValue.ItemsSource = selectedRow.resourceNameInfo; DscSampleCreatorTree.ItemsSource = selectedRow.DscResource; } catch (Exception exception) { HandleException(exception); } }
private void DataGrid_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { try { if (DataGridObject.SelectedItem == null) return; selectedRow = DataGridObject.SelectedItem as DscResourceClass; selectedRow.ExpandResource(); DataGridNameValue.ItemsSource = selectedRow.resourceNameInfo; DscSampleCreatorTree.ItemsSource = selectedRow.DscResource; } catch (Exception exception) { HandleException(exception); } }