コード例 #1
0
ファイル: Map.cs プロジェクト: kindam/TWTactics
 /// <summary>
 /// Sets the UserControl for the Map Class
 /// </summary>
 public void SetMapControl(MapControl map)
 {
     Debug.Assert(!_isMiniMap);
     _control = map.ScrollableMap;
     _control.SetMap(this);
     map.SetMap(this);
 }
コード例 #2
0
ファイル: Map.cs プロジェクト: kindam/TWTactics
 /// <summary>
 /// Sets the UserControl for the Map Class and start it as a minimap
 /// </summary>
 public void SetMiniMapControls(MiniMapControl miniMap, Map mainMap)
 {
     Debug.Assert(_isMiniMap);
     _control = miniMap;
     _control.SetMap(this);
     miniMap.SetMap(this, mainMap);
 }
コード例 #3
0
 public void TimerPaint(ScrollableMapControl mapPicture, Rectangle fullMap)
 {
     Graphics g = mapPicture.CreateGraphics();
     foreach (ManipulatorManagerBase manipulator in _manipulators.Values)
         manipulator.TimerPaint(new MapTimerPaintEventArgs(g, fullMap, manipulator == CurrentManipulator));
 }