Example #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="hill"></param>
        public ChangeGateWindow(Hill hill)
        {
            InitializeComponent();
            _hill = hill;

            sliderGate.Minimum = hill.LowestGate;
            sliderGate.Maximum = hill.HighestGate;
            sliderGate.Value   = hill.CurrGate;
            textBoxGate.Text   = $"{hill.CurrGate}";
        }
        private Hill _hill; // reference to the hill

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="hill"> reference to the hill object </param>
        public Compensation(Hill hill)
        {
            _hill = hill;
        }