Inheritance: INotifyPropertyChanged
Ejemplo n.º 1
0
        private void AddFrame(TestDepthFrame testFrame)
        {
            this.Frames.Add(testFrame);

            if (!this.VideoPresenter.IsRunning)
            {
                this.SelectFrame(testFrame);
            }
        }
Ejemplo n.º 2
0
 private void SelectFrame(TestDepthFrame depthFrame)
 {
     foreach (var frame in this.Frames.Where(f => f != depthFrame))
     {
         frame.IsSelected = false;
     }
     depthFrame.IsSelected = true;
     this.CurrentFrame     = depthFrame;
     this.OnPropertyChanged("IsFrameSelected");
     RefreshDepthFrame();
 }
 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);
         }
     }
 }
 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);
         }
     }
 }
Ejemplo n.º 5
0
 public SelectFrameEventArgs(TestDepthFrame frame)
 {
     this.Frame = frame;
 }
Ejemplo n.º 6
0
        private void AddNewDepthFrame(DepthDataFrame depthDataFrame)
        {
            var testFrame = new TestDepthFrame(depthDataFrame);

            this.AddFrame(testFrame);
        }
Ejemplo n.º 7
0
 public void ClearCurrentFrame()
 {
     this.CurrentFrame = null;
     this.OnPropertyChanged("IsFrameSelected");
 }
Ejemplo n.º 8
0
 public SelectFrameEventArgs(TestDepthFrame frame)
 {
     this.Frame = frame;
 }
Ejemplo n.º 9
0
 private void SelectFrame(TestDepthFrame depthFrame)
 {
     foreach (var frame in this.Frames.Where(f => f != depthFrame))
     {
         frame.IsSelected = false;
     }
     depthFrame.IsSelected = true;
     this.CurrentFrame = depthFrame;
     this.OnPropertyChanged("IsFrameSelected");
     RefreshDepthFrame();
 }
Ejemplo n.º 10
0
        private void AddFrame(TestDepthFrame testFrame) 
        {
            this.Frames.Add(testFrame);

            if (!this.VideoPresenter.IsRunning)
            {
                this.SelectFrame(testFrame);
            }
        }
Ejemplo n.º 11
0
 private void AddNewDepthFrame(DepthDataFrame depthDataFrame)
 {
     var testFrame = new TestDepthFrame(depthDataFrame);
     this.AddFrame(testFrame);
 }
Ejemplo n.º 12
0
 public void ClearCurrentFrame()
 {
     this.CurrentFrame = null;
     this.OnPropertyChanged("IsFrameSelected");
 }