예제 #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}";
        }
예제 #2
0
        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;
        }