/// <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()); } }
public void OpenEditor(object sender, EditorType type) { HtmlPage.Window.Invoke("OpenEditor", type.ToString()); }