Exemplo n.º 1
0
 protected virtual void OnMicrophoneAdded(DistanceDocumentEventArgs e)
 {
     if (MicrophoneAdded != null)
     {
         MicrophoneAdded(this, e);
     }
 }
Exemplo n.º 2
0
 void doc_MicrophoneAdded(object sender, DistanceDocumentEventArgs e)
 {
     // A new microphone was added to the document. Create a new icon for it
     // and place it on the plan.
     var mi = new MicrophoneIcon(e.Microphone);
     pMainArea.Controls.Add(mi.Icon);
 }
Exemplo n.º 3
0
 protected virtual void OnReferencePointAdded(DistanceDocumentEventArgs e)
 {
     if (ReferencePointAdded != null)
     {
         ReferencePointAdded(this, e);
     }
 }
Exemplo n.º 4
0
 void doc_ReferencePointAdded(object sender, DistanceDocumentEventArgs e)
 {
     // A new ReferencePoint was added to the document. Create a new icon for it
     // and place it on the plan.
     var rp = new ReferencePointIcon(e.ReferencePoint);
     mainCanvas.Children.Add(rp.Icon);
     // Center the icon on the coordinates from the document.
     Canvas.SetLeft(rp.Icon, e.ReferencePoint.X - rp.Icon.Source.Width / 2);
     Canvas.SetTop(rp.Icon, e.ReferencePoint.Y - rp.Icon.Source.Height / 2);
 }
Exemplo n.º 5
0
 void doc_MicrophoneAdded(object sender, DistanceDocumentEventArgs e)
 {
     // A new microphone was added to the document. Create a new icon for it
     // and place it on the plan.
     var mi = new MicrophoneIcon(e.Microphone);
     mainCanvas.Children.Add(mi.Icon);
     // Center the icon on the coordinates from the document.
     Canvas.SetLeft(mi.Icon, e.Microphone.X - mi.Icon.Source.Width / 2);
     Canvas.SetTop(mi.Icon, e.Microphone.Y - mi.Icon.Source.Height / 2);
 }
Exemplo n.º 6
0
 protected virtual void OnMicrophoneAdded(DistanceDocumentEventArgs e)
 {
     if (MicrophoneAdded != null)
         MicrophoneAdded(this, e);
 }
Exemplo n.º 7
0
 protected virtual void OnReferencePointAdded(DistanceDocumentEventArgs e)
 {
     if (ReferencePointAdded != null)
         ReferencePointAdded(this, e);
 }