示例#1
0
 private void LoadGuiXml(string filename)
 {
     try
     {
         _gui.Clear();
         _guiLoader.Load(filename, _gui.Desktop);
         _filename = filename;
     }
     catch (Exception e)
     {
         StaticConsole.Console.AddLine(string.Format("Failed to load `{0}`", filename));
         StaticConsole.Console.AddException(e);
     }
 }