private void SaveToXml(object sender, RoutedEventArgs e)
        {
            XmlHandler xh = new XmlHandler();

            //TODO: replace hardcoded value with centralized configuration
            string path = UI.Prompt.ForXmlFileSave(@"C:\NWD\fragments");
            if (path != null)
                xh.Save(
                    FragmentXmlAdapter.WrapAll(window.GetFragments()), path);
        }
        private void LoadFromXml(object sender, RoutedEventArgs e)
        {
            XmlHandler xh = new XmlHandler();

            //TODO: replace hardcoded value with centralized configuration
            string path = UI.Prompt.ForXmlFileLoad(@"C:\NWD\fragments");
            if (path != null && File.Exists(path))
            {
                FragmentXmlAdapter template = new FragmentXmlAdapter(null);
                window.Receive(
                    FragmentXmlAdapter.UnWrapAll(xh.Load(path, template)));
            }
        }