private void SelectPositionPreset() { holdPresetEvent = true; positionPresets.SelectedItem = isTripleScreen ? R3ePointPreset.GetPresetName(Selection.Position, ScreenUtils.GetScreen(Selection)) : R3ePointPreset.GetPresetName(Selection.Position); holdPresetEvent = false; }
private void OnAnchorPresetSelected(object sender, SelectionChangedEventArgs e) { if (holdPresetEvent) { return; } string name = anchorPresets.SelectedItem.ToString(); R3ePoint anchor = R3ePointPreset.GetPreset(name); if (anchor != null) { DispatchEvent(new SelectionViewEventArgs(EVENT_ANCHOR_MOVED, anchor)); } }
private void OnPositionPresetSelected(object sender, SelectionChangedEventArgs e) { if (holdPresetEvent) { return; } string name = positionPresets.SelectedItem.ToString(); R3ePoint position = isTripleScreen ? R3ePointPreset.GetPreset(name, ScreenUtils.GetScreen(Selection)) : R3ePointPreset.GetPreset(name); DispatchEvent(new SelectionViewEventArgs(EVENT_PLACEHOLDER_MOVED, position)); if (linkAnchorsCheck.IsChecked == true) { anchorPresets.SelectedItem = position; DispatchEvent(new SelectionViewEventArgs(EVENT_ANCHOR_MOVED, R3ePointPreset.GetPreset(name))); } }
private void SelectAnchorPreset() { holdPresetEvent = true; anchorPresets.SelectedItem = R3ePointPreset.GetPresetName(Selection.Anchor); holdPresetEvent = false; }