Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Markowitz committed Oct 6, 2016
1 parent 487b322 commit 6dead7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion kinect2_nidaq/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
Width="512"
Stretch="UniformToFill"
VerticalAlignment="Top"
HorizontalAlignment="Left" Grid.Row="1"/>
HorizontalAlignment="Left" Grid.Row="1" RenderTransformOrigin="0.5, 0.5"/>
<Image x:Name="DepthDisplay"
HorizontalAlignment="Right"
Height="424"
Expand Down
18 changes: 10 additions & 8 deletions kinect2_nidaq/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,8 @@ private void SettingsChanged()
// if we have anything in the time box, then disable the continuous button
CheckNoTimer.IsEnabled = false;
ContinuousMode = false;
RecordingTimeText.IsEnabled = true;
RecordingTimeBox.IsEnabled = true;
RecordingTime = Convert.ToDouble(RecordingTimeBox.Text) * 60e3;
//StatusBarSessionProgress.IsEnabled = true;
}
Expand Down Expand Up @@ -1529,16 +1531,14 @@ private void WriteMetadata()

Type t = typeof(NidaqData);
System.Reflection.PropertyInfo t2 = t.GetProperty("Data");
fMetadata.NidaqDataType = t2.PropertyType.Name;
}


fMetadata.NidaqDataType = t2.PropertyType.Name;

for (int i = 0; i < aiChannelList.SelectedItems.Count; i++)
{
fMetadata.NidaqChannelNames[i] = aiChannelList.SelectedItems[i].ToString();
for (int i = 0; i < aiChannelList.SelectedItems.Count; i++)
{
fMetadata.NidaqChannelNames[i] = aiChannelList.SelectedItems[i].ToString();
}
}

fMetadata.StartTime = DateTime.Now;

JsonSerializer serializer = new JsonSerializer();
Expand Down Expand Up @@ -1674,12 +1674,14 @@ private void FlipDepth_Checked(object sender, RoutedEventArgs e)
{
System.Windows.Media.RotateTransform rotateTransform = new System.Windows.Media.RotateTransform(180);
DepthDisplay.RenderTransform = rotateTransform;
ColorDisplay.RenderTransform = rotateTransform;
}

private void FlipDepth_Unchecked(object sender, RoutedEventArgs e)
{
System.Windows.Media.RotateTransform rotateTransform = new System.Windows.Media.RotateTransform(0);
DepthDisplay.RenderTransform = rotateTransform;
ColorDisplay.RenderTransform = rotateTransform;
}

}
Expand Down

0 comments on commit 6dead7d

Please sign in to comment.