PortsDialog.cs

src/ArtheaGUI/PortsDialog.cs · 1.2 KB

From the archive Arthea-src-1.0.zip

Download the archive   « Back to the archive contents

#region Arthea License

/***********************************************************************
*  Arthea MUD by R. Jennings (2007)      http://arthea.googlecode.com/ *
*  By using this code you comply with the Artistic and GPLv2 Licenses. *
***********************************************************************/

#endregion

using System;
using System.Windows.Forms;

namespace ArtheaGUI
{
    /// <summary>
    /// Implementation of the ports dialog.
    /// </summary>
    public partial class PortsDialog : Form
    {
        #region [rgn] Constructors (1)

        /// <summary>
        /// Constructs the port dialog
        /// </summary>
        public PortsDialog()
        {
            InitializeComponent();
        }

        #endregion [rgn]

        #region [rgn] Properties (2)

        /// <summary>
        /// The port the server uses.
        /// </summary>
        public short Port
        {
            get { return Convert.ToInt16(numPort.Value); }
        }

        /// <summary>
        /// The port recovery transfers use.
        /// </summary>
        public short RecoveryPort
        {
            get { return Convert.ToInt16(numRecovery.Value); }
        }

        #endregion [rgn]
    }
}

Site Stats

Snippets: 1791
Codebases: 571