示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }