Ejemplo n.º 1
0
        /// <summary>
        /// Load the content of a MiniUML file and store it for
        /// presentation and manipulation in the returned viewmodel.
        /// </summary>
        /// <param name="filePath"></param>
        /// <returns></returns>
        private static MiniUmlViewModel LoadFile(string filePath)
        {
            MiniUmlViewModel vm = new MiniUmlViewModel();

            if (vm.OpenFile(filePath) == true)
            {
                return(vm);
            }

            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Load a UML editor file based on an <seealso cref="IDocumentModel"/>
 /// representation and an <seealso cref="ISettingsManager"/> instance.
 /// </summary>
 /// <param name="dm"></param>
 /// <param name="o">Should point to a <seealso cref="ISettingsManager"/> instance.</param>
 /// <returns></returns>
 public static MiniUmlViewModel LoadFile(IDocumentModel dm, object o)
 {
     return(MiniUmlViewModel.LoadFile(dm.FileNamePath));
 }