public override bool ReinitWithArguments(GrtValue value) { if (Backend != null && Backend.is_editor_dirty()) return false; // Will open the plugin in a new editor window instead. InitializingControls = true; try { Backend = new MySQL.Grt.StoredNoteEditorWrapper(GrtManager, value); SetupEditorOnHost(content, storedNoteEditorBE.is_sql_script()); storedNoteEditorBE.load_text(); EditorTextChanged(); } finally { InitializingControls = false; } Invalidate(); return true; }
public override bool ReinitWithArguments(GrtValue value) { if (Backend != null && Backend.is_editor_dirty()) { return(false); // Will open the plugin in a new editor window instead. } InitializingControls = true; try { Backend = new MySQL.Grt.StoredNoteEditorWrapper(value); SetupEditorOnHost(content, storedNoteEditorBE.is_sql_script()); storedNoteEditorBE.load_text(); EditorTextChanged(); } finally { InitializingControls = false; } Invalidate(); return(true); }