/// <summary>
 ///   <para>Activate the specified editor</para>
 /// </summary>
 public void setEditor(EditorType editorType, Boolean activate)
 {
     if (listEditors.TryGetValue(editorType, out m_currentEditor))
     {
         m_editorType = editorType;
         TableIO.State state = m_currentEditor.getTableIO(tabBase).getState();
         m_currentEditor.ensureState(state);
         if (activate)
         {
             String currentId = m_currentEditor.activate();
             flnSearch.Text = currentId == null ? "" : currentId;
         }
     }
     else
     {
         // TODO: User feedback
         MessageBox.Show("Unable to activate the editor " + editorType.ToString());
     }
 }
示例#2
0
 public void OpenEditor(object sender, EditorType type)
 {
     HtmlPage.Window.Invoke("OpenEditor", type.ToString());
 }
示例#3
0
 /// <summary>
 ///   <para>Activate the specified editor</para>
 /// </summary>
 public void setEditor(EditorType editorType, Boolean activate)
 {
     if (listEditors.TryGetValue(editorType, out m_currentEditor))
     {
         m_editorType = editorType;
         TableIO.State state = m_currentEditor.getTableIO(tabBase).getState();
         m_currentEditor.ensureState(state);
         if (activate)
         {
             String currentId = m_currentEditor.activate();
             flnSearch.Text = currentId == null ? "" : currentId;
         }
     }
     else
     {
         // TODO: User feedback
         MessageBox.Show("Unable to activate the editor " + editorType.ToString());
     }
 }