/// <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); } }
/// <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); } }
/// <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); } } }
/// <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); } } }
private void mapHeight(IMap_Base mapFile, HeightChangedEventArgs e) { Refresh(); //if(HeightChanged!=null) // HeightChanged(mapFile,e); }
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(); }
public override void HeightChanged(IMap_Base sender, HeightChangedEventArgs e) { currEntry = ((XCMapTile) map[clickRow, clickCol]).Rmp; fillGUI(); Refresh(); }