protected void ShowXmlEditor(object sender, EventArgs args) { XmlEditorController.IfNull(() => { NewDocument("xmlEditor.xml"); }); }
public void LoadXml(string filename) { XmlEditorController.IfNull(() => NewDocument("xmlEditor.xml")); XmlEditorController.View.Editor.LoadFile(filename); CurrentXmlFilename = filename; // SetCaption(filename); CreateTypes(this, EventArgs.Empty); GenerateCode(this, EventArgs.Empty); Compile(this, EventArgs.Empty); // Now we can load our receptors, once the protocol dictionary is loaded. // TODO: How do we KNOW the protocol dictionary has been loaded? // Speak("Protocols loaded."); Program.Skin.LoadReceptors(); // Process immediately. }