public ReferencePointIcon(ReferencePoint rp)
        {
            this.rp = rp;

            icon = new Image();
            icon.Source = new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(Application.Current.MainWindow), "Images/referencepoint.png"));

            // Register for updates on the mouse down event so that we may start a drag'n'drop operation.
            this.icon.MouseDown += icon_MouseDown;
        }
 public DistanceDocumentEventArgs(ReferencePoint rp)
 {
     this.mic = null;
     this.rp = rp;
 }
 public DistanceDocumentEventArgs(Microphone mic)
 {
     this.mic = mic;
     this.rp = null;
 }
 public DistanceDocumentEventArgs(Microphone mic, ReferencePoint rp)
 {
     this.mic = mic;
     this.rp = rp;
 }
 public void AddReferencePoint(ReferencePoint rp)
 {
     referencePoints.Add(rp);
     OnChanged(EventArgs.Empty);
 }
 public void AddReferencePoint(ReferencePoint rp)
 {
     referencePoints.Add(rp);
     OnReferencePointAdded(new DistanceDocumentEventArgs(rp));
     OnChanged(EventArgs.Empty);
 }
Esempio n. 7
0
 public DistanceDocumentEventArgs(ReferencePoint rp)
 {
     this.mic = null;
     this.rp  = rp;
 }
Esempio n. 8
0
 public DistanceDocumentEventArgs(Microphone mic)
 {
     this.mic = mic;
     this.rp  = null;
 }
Esempio n. 9
0
 public DistanceDocumentEventArgs(Microphone mic, ReferencePoint rp)
 {
     this.mic = mic;
     this.rp  = rp;
 }
Esempio n. 10
0
 public void AddReferencePoint(ReferencePoint rp)
 {
     referencePoints.Add(rp);
     OnChanged(EventArgs.Empty);
 }
Esempio n. 11
0
 public void AddReferencePoint(ReferencePoint rp)
 {
     referencePoints.Add(rp);
     OnReferencePointAdded(new DistanceDocumentEventArgs(rp));
     OnChanged(EventArgs.Empty);
 }