Exemple #1
0
 /// <summary>
 ///		Copys this instance's properties from another instance.
 /// </summary>
 /// <param name="from">Instance to copy from.</param>
 public MapProperties(MapProperties from)
 {
     _encrypt     = from.Encrypt;
     _password    = from.Password;
     _compress    = from.Compress;
     _name        = from.Name;
     _author      = from.Author;
     _description = from.Description;
     _version     = from.Version;
 }
        /// <summary>
        ///		Initializes this instance and sets up the window and all its controls.
        /// </summary>
        public MapPropertiesWindow(MapProperties properties)
        {
            // Initializes all the controls on this window.
            InitializeComponent();

            // Retrieve the map properties from the editor window.
            _mapProperties = new MapProperties(properties);
            SyncProperties();

            // Create the navigation nodes and add them to the navigation tree.
            _nodes[0] = new System.Windows.Forms.TreeNode("General");
            _nodes[1] = new System.Windows.Forms.TreeNode("Debug");
            _nodes[2] = new System.Windows.Forms.TreeNode("Security");
            _nodes[3] = new System.Windows.Forms.TreeNode("Infomation");
            optionTreeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { _nodes[0], _nodes[1], _nodes[2], _nodes[3] });
        }
 /// <summary>
 ///		Copys this instance's properties from another instance.
 /// </summary>
 /// <param name="from">Instance to copy from.</param>
 public MapProperties(MapProperties from)
 {
     _encrypt = from.Encrypt;
     _password = from.Password;
     _compress = from.Compress;
     _name = from.Name;
     _author = from.Author;
     _description = from.Description;
     _version = from.Version;
 }