private bool OnSelection(DocumentHandler docHandler, swSelectType_e selType, SelectionState_e state) { switch (state) { case SelectionState_e.UserPreSelect: if (!Filter?.Contains(selType) == true) { return(false); } break; case SelectionState_e.UserPostSelect: var sel = FindLastObjectByMark(Mark); if (sel == Selection) { sel = null; } Selection = sel; break; case SelectionState_e.ClearSelection: Selection = null; break; } return(true); }
private bool OnSelection(DocumentHandler docHandler, swSelectType_e selType, SelectionState_e state) { if (state == SelectionState_e.NewSelection) { InvokeTrigger(Triggers_e.NewSelection); } return(true); }
private bool OnSelection(DocumentHandler docHandler, swSelectType_e selType, SelectionState_e type) { if (m_ShowSelectionEvents) { if (type != SelectionState_e.UserPreSelect)//dynamic selection { return(App.SendMsgToUser2($"'{docHandler.Model.GetTitle()}' selection ({type}) of {selType}. Cancel?", (int)swMessageBoxIcon_e.swMbQuestion, (int)swMessageBoxBtn_e.swMbYesNo) == (int)swMessageBoxResult_e.swMbHitNo); } else { return(selType != swSelectType_e.swSelFACES); } } else { return(true); } }