Changeset 1711


Ignore:
Timestamp:
Jun 30, 2010, 11:14:08 AM (11 years ago)
Author:
kopal
Message:
  • serialization of model now works (still needed view reconstruction using the deserialized model)
Location:
trunk/CrypPlugins/WorkspaceManager
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Model/ConnectorModel.cs

    r1700 r1711  
    1616
    1717using System;
    18 using System.Linq;
    19 using System.Text;
     18using System.Collections.Generic;
    2019using System.ComponentModel;
    21 using System.Threading;
     20using System.Windows.Media;
    2221using Cryptool.PluginBase;
    2322using WorkspaceManager.View.Container;
    24 using System.Windows.Media;
    25 using System.Collections.Generic;
    2623
    2724namespace WorkspaceManager.Model
     
    185182
    186183        /// <summary>
    187         ///
    188         /// </summary>
     184        /// The data type of the wrapped property changes
     185        /// </summary>       
    189186        public void PropertyTypeChangedOnPlugin(IPlugin plugin)
    190187        {
  • trunk/CrypPlugins/WorkspaceManager/Model/PluginModel.cs

    r1700 r1711  
    7171        /// this acts as singleton and returns the created
    7272        /// instance
    73         /// </summary>
     73        /// </summary>       
    7474        public IPlugin Plugin{
    7575            get {
  • trunk/CrypPlugins/WorkspaceManager/Model/VisualElementModel.cs

    r1685 r1711  
    3535        /// <summary>
    3636        /// Called when this object is deleted
    37         /// </summary
     37        /// </summary>
     38        [field: NonSerialized]
    3839        public event EventHandler<EventArgs> OnDelete;
    3940
  • trunk/CrypPlugins/WorkspaceManager/Model/WorkspaceModel.cs

    r1700 r1711  
    2121using System.Windows;
    2222using Cryptool.PluginBase;
    23 using System.Runtime.Serialization.Formatters.Soap;
    2423
    2524namespace WorkspaceManager.Model
  • trunk/CrypPlugins/WorkspaceManager/WorkspaceManager.cs

    r1684 r1711  
    126126        /// <summary>
    127127        /// Called by clicking on the open button of CrypTool
     128        /// loads a serialized model
    128129        /// </summary>
    129130        /// <param name="fileName"></param>
     
    132133            try
    133134            {
    134                 GuiLogMessage("Loading Model: " + fileName, NotificationLevel.Info);
     135                GuiLogMessage("Loading Model: " + fileName, NotificationLevel.Info);               
    135136                WorkspaceModel = ModelPersistance.loadModel(fileName);
    136137                WorkspaceModel.WorkspaceManagerEditor = this;
     
    146147        /// <summary>
    147148        /// Called by clicking on the save button of CrypTool
    148         /// Serializes the Model into an xml file
     149        /// serializes the current model
    149150        /// </summary>
    150151        /// <param name="fileName"></param>
Note: See TracChangeset for help on using the changeset viewer.