コード例 #1
0
 void selectionTool_OnElementSelected(object sender, ElementSelectedEventArgs e)
 {
     if (propertyForm == null || propertyForm.IsDisposed)
     {
         propertyForm = new PropertyForm();
     }
     propertyForm.SetElement(e.Element.LinkedObject);
     propertyForm.Show();
 }
コード例 #2
0
 private void selectionTool_OnElementSelected(object sender, ElementSelectedEventArgs e)
 {
     if (propertyForm == null || propertyForm.IsDisposed)
     {
         propertyForm = new PropertyForm();
         if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
         {
             propertyForm.MdiParent = this;
         }
     }
     propertyForm.SetElement(e.Element.LinkedObject);
     if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
     {
         propertyForm.Show();
     }
     else
     {
         propertyForm.Show(dockPanel);
     }
 }
コード例 #3
0
 private void View_SpeakableElementSelected(object sender, ElementSelectedEventArgs e)
 {
     PlaySpeakableElement(e);
 }
コード例 #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="args"></param>
 internal void PlaySpeakableElementHelpText(ElementSelectedEventArgs args)
 {
     // Tell the View to speak the element - this method could contain business logic
     // about whether self voicing is enabled.
     View.SpeakElementHelpText(args.Element, _state.IsPlaying);
 }
コード例 #5
0
 /// <summary>
 /// All requests to speak text, from all Views, end up here. Currently we pass the request
 /// on to the Player since it is the one that deals with Audio and has to pause the book
 /// voice in order to speak.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void AllViews_SpeakableElementSelectedHelpText(object sender, ElementSelectedEventArgs e)
 {
     PlayerPresenter.PlaySpeakableElementHelpText(e);
 }