Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
        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)));
            }
        }