示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Project"/> class.
 /// </summary>
 /// <param name="xmlModel">The XML model.</param>
 public ProjectModel(XElement xmlModel, string applicationVersion, MobiseConfiguration configuration)
     : this(applicationVersion, configuration)
 {
     if (xmlModel != null)
     {
         this.FromXml(xmlModel);
     }
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Project" /> class.
        /// </summary>
        public ProjectModel(string applicationVersion, MobiseConfiguration configuration) : base(null)
        {
            this.RenamedStyles             = new Dictionary <string, string>();
            this.mobiseConfiguration       = configuration;
            this.FileSystemObjectModelType = FileSystemObjectType.File;
            this.FileType      = Common.Models.FileType.Project;
            this.FolderType    = Common.Models.FolderType.Project;
            this.MBSyncUrl     = "http://107.20.134.125:1414/MBSyncService.svc";
            this.MBTestSyncUrl = "http://107.20.134.125:1414/TestSyncService.svc";

            this.Models                = new List <DatabaseModel>();
            this.References            = new TrulyObservableCollection <ReferencesModel>();
            this.Targets               = new TrulyObservableCollection <TargetModel>();
            this.ConfigurationSections = new TrulyObservableCollection <ConfigurationSectionModel>();
            this.Folders               = new TrulyObservableCollection <FolderModel>();
            this.Files   = new List <FileModel>();
            this.Image   = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(ImagesResources.Project.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
            this.Version = applicationVersion;
        }