source: trunk/CrypPlugins/WorkspaceManager/Model/TextModel.cs @ 1842

Last change on this file since 1842 was 1842, checked in by kopal, 11 years ago
  • removed event bug of PluginModel which made saving unable to workspace
  • added new Models:
    • TextModel - represents a Text which can be put onto the workspace
    • ImageModel - represents an Image which can be put onto the workspace
File size: 772 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace WorkspaceManager.Model
7{
8    /// <summary>
9    /// This class wraps a text which can be put to the workspace
10    /// </summary>
11    public class TextModel : VisualElementModel
12    {
13        private string text = null;
14
15        /// <summary>
16        /// Instantiate a new TextModel
17        /// </summary>
18        /// <param name="text"></param>
19        public TextModel(string text)
20        {
21            this.text = text;
22        }
23
24        /// <summary>
25        /// Get/Set the text
26        /// </summary>
27        public string Text
28        {
29            get { return this.text; }
30            set { this.text = value; }
31        }
32    }
33}
Note: See TracBrowser for help on using the repository browser.