Maximus5 / conemu-inside

An example, how to embed http://conemu.github.io/ into another graphical application
57 stars 43 forks source link

Custom Configuration #15

Closed mastersign closed 8 years ago

mastersign commented 8 years ago

I'm really impressed by your work on ConEmu and the windows forms control. I was looking a long time for such a neat solution.

For the windows forms control, I wish there would be a way to provide a custom configuration. Maybe provide a property ConfigurationSource of type Func<Stream> on ConEmuStartInfo and use it in ConEmuSession.Init_MakeConEmuCommandLine_EmitConfigFile to load the configuration template. If none is provided you can still fall back to the template resource.

If it helps, I can prepare a pull request.

hypersw commented 8 years ago

Maybe make it XmlDocument rather? This way it would also early-check that the config file is at least a valid XML.

mastersign commented 8 years ago

Good Idea. Much simpler.