public HandTracking.Persistence.TestFrameEntity ToTestDepthFrame() { return new TestFrameEntity(this.Id, new DepthFrameEntity(this.Frame.Size, this.Frame.Data), this.Hands.Select(h => h.ToHandDefinition())); }
public void Save(TestDepthFrame frame) { using (var dialog = new System.Windows.Forms.SaveFileDialog()) { dialog.Filter = this.fileDialogFilter; dialog.FileName = frame.Id + ".xfrm"; if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { new TestFrameRepository().Save(frame.ToTestDepthFrame(), dialog.FileName); } } }