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); }
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)); } } // 暂时只接受数据不显示 }
public void ClearSelectionMarks() { MarkList.Clear(); }