Example #1
0
 public Sample(DataModel.Sample sample)
 {
     this.sample = sample;
     this.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
     {
          this.sample.UpdateAsync(true);
         //this.sample = _db.QuerySample(this.sample.Id);
     //				this._samples.SampleList.Insert(this._samples.SampleList.CurrentPosition, this);
     //				if(!_samples.SampleList.Contains(this))
     //				{
     //					_samples.SampleList.Insert(_samples.SampleList.CurrentPosition, this);
     //				//	_samples.SampleList.MoveCurrentTo(this);
     //				}
     };
 }
Example #2
0
        public Sample(DataModel.Sample sample)
        {
            this.sample           = sample;
            this.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
            {
                this.sample.UpdateAsync(true);
                //this.sample = _db.QuerySample(this.sample.Id);
//				this._samples.SampleList.Insert(this._samples.SampleList.CurrentPosition, this);
//				if(!_samples.SampleList.Contains(this))
//				{
//					_samples.SampleList.Insert(_samples.SampleList.CurrentPosition, this);
//				//	_samples.SampleList.MoveCurrentTo(this);
//				}
            };
        }