Пример #1
0
 private void SelectPositionPreset()
 {
     holdPresetEvent = true;
     positionPresets.SelectedItem = isTripleScreen ?
                                    R3ePointPreset.GetPresetName(Selection.Position, ScreenUtils.GetScreen(Selection))
         : R3ePointPreset.GetPresetName(Selection.Position);
     holdPresetEvent = false;
 }
Пример #2
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));
            }
        }
Пример #3
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)));
            }
        }
Пример #4
0
 private void SelectAnchorPreset()
 {
     holdPresetEvent            = true;
     anchorPresets.SelectedItem = R3ePointPreset.GetPresetName(Selection.Anchor);
     holdPresetEvent            = false;
 }