Exemplo n.º 1
0
 public override void DeserializeBindings(IDictionary <string, object> bindSer, Dictionary <long, ISerializable> refDict)
 {
     if (bindSer != null)
     {
         ttc = (ToolTipChar)refDict[(long)bindSer[TTC_KEY]];
         ttc.BoundTooltip = this;
     }
 }
Exemplo n.º 2
0
 public void CreateCharacterTooltip(XNA.Rectangle rect)
 {
     lock (board.ParentControl)
     {
         ttc = new ToolTipChar(Board, rect, this);
         List <UndoRedoAction> undoPipe = new List <UndoRedoAction>();
         ttc.OnItemPlaced(undoPipe);
         Board.BoardItems.CharacterToolTips.Add(ttc);
         Board.UndoRedoMan.AddUndoBatch(undoPipe);
     }
 }
Exemplo n.º 3
0
 public override void DeserializeBindings(IDictionary<string, object> bindSer, Dictionary<long, ISerializable> refDict)
 {
     if (bindSer != null)
     {
         ttc = (ToolTipChar)refDict[(long)bindSer[TTC_KEY]];
         ttc.BoundTooltip = this;
     }
 }
Exemplo n.º 4
0
 public void CreateCharacterTooltip(XNA.Rectangle rect)
 {
     lock (board.ParentControl)
     {
         ttc = new ToolTipChar(Board, rect, this);
         List<UndoRedoAction> undoPipe = new List<UndoRedoAction>();
         ttc.OnItemPlaced(undoPipe);
         Board.BoardItems.CharacterToolTips.Add(ttc);
         Board.UndoRedoMan.AddUndoBatch(undoPipe);
     }
 }
Exemplo n.º 5
0
 public static UndoRedoAction ToolTipUnlinked(ToolTipInstance tt, ToolTipChar ttc)
 {
     return new UndoRedoAction(tt, UndoRedoType.ToolTipUnlinked, ttc, null);
 }