public void LoadDialog(string filename)
 {
     try
     {
         XmlDocument xmldoc = new XmlDocument();
         xmldoc.LoadXml(File.ReadAllText(filename, Encoding.Unicode));
         activeDialog = null;
         XmlElement dialog = xmldoc["dialog"];
         activeDialog = BuildTree(dialog);
         activeDialog.OnActivation();
     }
     catch (Exception ex)
     {
         LogConsole.Exception("Dialog Loader", ex);
     }
 }
 public DialogSystem()
 {
     nullDialog = new DialogNode(this, "", "");
     activeDialog = nullDialog;
 }