Ejemplo n.º 1
0
 private void MarcRect_MouseUp(object sender, Drawing3d.HandledMouseEventArgs e)
 {
     Selector.SnapInside(MarcRect.Rectangle);
     if (Form.ModifierKeys != Keys.Shift)
     {
         MarkList.Clear();
     }
     for (int i = 0; i < SnappItems.Count; i++)
     {
         if (IndexOfTag(SnappItems[i].Tag) < 0)
         {
             MarkList.Add(SnappItems[i].Tag);
         }
     }
     e.Handled = true;
     MarcRect.OnLogout(false);
 }
Ejemplo n.º 2
0
        private void OnMarkListPack(MsgBase b)
        {
            var selfMsg = (Msg_AgarMarkListPack)b;

            MarkList.Clear();

            foreach (var obj in selfMsg.MarkList)
            {
                if (CircleList.ContainsKey(obj.Key))
                {
                    MarkList.Add(new KeyValuePair <string, int>(CircleList[obj.Key].Name, obj.Value));
                }
                else if (obj.Key == Uid && Player != null)
                {
                    MarkList.Add(new KeyValuePair <string, int>(Player.Name, obj.Value));
                }
            }
            // 暂时只接受数据不显示
        }
Ejemplo n.º 3
0
 public void ClearSelectionMarks()
 {
     MarkList.Clear();
 }