private void SetAnchorValue(MessagePosition.AnchorType value) { if (FPSRadio.Checked) { _fps.Anchor = value; } else if (FrameCounterRadio.Checked) { _frameCounter.Anchor = value; } else if (LagCounterRadio.Checked) { _lagCounter.Anchor = value; } else if (InputDisplayRadio.Checked) { _inputDisplay.Anchor = value; } else if (WatchesRadio.Checked) { _ramWatches.Anchor = value; } else if (MessagesRadio.Checked) { _messages.Anchor = value; } else if (RerecordsRadio.Checked) { _reRecordCounter.Anchor = value; } else if (MultitrackRadio.Checked) { _multitrackRecorder.Anchor = value; } else if (AutoholdRadio.Checked) { _autohold.Anchor = value; } }
public static bool IsTop(this MessagePosition.AnchorType type) { return(type == MessagePosition.AnchorType.TopLeft || type == MessagePosition.AnchorType.TopRight); }
public static bool IsLeft(this MessagePosition.AnchorType type) { return(type == MessagePosition.AnchorType.TopLeft || type == MessagePosition.AnchorType.BottomLeft); }
private void SetAnchor(MessagePosition.AnchorType value) { _messagePosition.Anchor = value; _changeCallback?.Invoke(); }