public Settings(bool autoCloseWindow, HotKeyData hotKeyData, HorizontalWindowPosition popupHorizontalAlignment, VerticalWindowPosition popupVerticalAlignment) { AutoCloseWindow = autoCloseWindow; HotKeyData = hotKeyData; PopupHorizontalPosition = popupHorizontalAlignment; PopupVerticalPosition = popupVerticalAlignment; HotKeyData.PropertyChanged += (s, e) => OnPropertyChanged("HotKeyData"); }
public static double GetWindowLeft(HorizontalWindowPosition horizontalWindowPosition, double totalWidth) { switch (horizontalWindowPosition) { case HorizontalWindowPosition.Center: return(totalWidth / 3); case HorizontalWindowPosition.Right: return(totalWidth * 0.55); default: return(0); } }