EventArgs class for when a HeightChanged event fires.
Inheritance: System.EventArgs
Example #1
0
		/// <summary>
		/// Changes the currentHeight property and fires a HeightChanged event
		/// </summary>
		public void Down()
		{
			if (currentHeight < mapSize.Height - 1)
			{
				currentHeight++;
				HeightChangedEventArgs e = new HeightChangedEventArgs(currentHeight, currentHeight + 1);
				if (HeightChanged != null)
					HeightChanged(this, e);
			}
		}
Example #2
0
		/// <summary>
		/// Changes the currentHeight property and fires a HeightChanged event
		/// </summary>
		public void Up()
		{
			if (currentHeight > 0)
			{
				HeightChangedEventArgs e = new HeightChangedEventArgs(currentHeight, currentHeight - 1);
				currentHeight--;
				if (HeightChanged != null)
					HeightChanged(this, e);
			}
		}
Example #3
0
        /// <summary>
        /// Changes the currentHeight property and fires a HeightChanged event
        /// </summary>
        public void Down()
        {
            if (_currentHeight < MapSize.Height - 1)
            {
                _currentHeight++;
                var e = new HeightChangedEventArgs(_currentHeight, _currentHeight + 1);

                if (HeightChanged != null)
                {
                    HeightChanged(this, e);
                }
            }
        }
Example #4
0
        /// <summary>
        /// Changes the currentHeight property and fires a HeightChanged event
        /// </summary>
        public void Up()
        {
            if (_currentHeight > 0)
            {
                var e = new HeightChangedEventArgs(_currentHeight, _currentHeight - 1);
                _currentHeight--;

                if (HeightChanged != null)
                {
                    HeightChanged(this, e);
                }
            }
        }
Example #5
0
		private void mapHeight(IMap_Base mapFile, HeightChangedEventArgs e)
		{
			Refresh();
			//if(HeightChanged!=null)
			//	HeightChanged(mapFile,e);
		}
Example #6
0
		public override void HeightChanged(IMap_Base sender, HeightChangedEventArgs e)
		{
			lastLoc.Height = e.NewHeight;
			mapTile = (XCMapTile)map[lastLoc.Row, lastLoc.Col];
			Refresh();
		}
		public virtual void HeightChanged(IMap_Base sender, HeightChangedEventArgs e) { Refresh(); }
Example #8
0
 public override void HeightChanged(IMap_Base sender, HeightChangedEventArgs e)
 {
     currEntry = ((XCMapTile) map[clickRow, clickCol]).Rmp;
     fillGUI();
     Refresh();
 }