Changeset 2305


Ignore:
Timestamp:
Jan 10, 2011, 11:35:05 AM (11 years ago)
Author:
kopal
Message:

added new Open method using a WorkspaceModel

File:
1 edited

Legend:

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

    r2280 r2305  
    132132        }
    133133
     134        /// <summary>
     135        /// Open the given model in the editor
     136        /// </summary>
     137        /// <param name="fileName"></param>
     138        public void Open(WorkspaceModel model)
     139        {
     140            try
     141            {
     142                New();
     143                WorkspaceSpaceEditorView.Load(model);               
     144            }
     145            catch (Exception ex)
     146            {
     147                GuiLogMessage("Could not open Model:" + ex.ToString(), NotificationLevel.Error);
     148            }
     149        }
     150       
    134151        /// <summary>
    135152        /// Called by clicking on the open button of CrypTool
Note: See TracChangeset for help on using the changeset viewer.