using System;
using System.Windows.Forms;

namespace CareFusion.ITSystemSimulator.Gui.Pages
{
    /// <summary>
    /// Popup form to enter a new box number in case of cloning any of the existing order.
    /// </summary>
    /// <seealso cref="System.Windows.Forms.Form" />
    public partial class FNewBoxNumber : Form
    {
        /// <summary>
        /// New Box Number value for the cloned order.
        /// </summary>
        public string NewBoxNumberValue = string.Empty;

        /// <summary>
        /// Initializes a new instance of the <see cref="FNewBoxNumber"/> class.
        /// </summary>
        public FNewBoxNumber()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Handles the Click event of the btnSaveNewBoxNumber control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void BtnSaveNewBoxNumber_Click(object sender, EventArgs e)
        {
            NewBoxNumberValue = textBoxNewBoxNumber.Text;
            this.DialogResult = DialogResult.OK;
        }
    }
}
