public DockUI(DockEditor editor) { this.editor = editor; upDownOrder = new[] { top, fill, bottom, none }; leftRightOrder = new[] { left, fill, right }; tabOrder = new[] { top, left, fill, right, bottom, none }; if (!isScalingInitialized) { if (DpiHelper.IsScalingRequired) { noneHeight = DpiHelper.LogicalToDeviceUnitsY(NONE_HEIGHT); noneWidth = DpiHelper.LogicalToDeviceUnitsX(NONE_WIDTH); controlHeight = DpiHelper.LogicalToDeviceUnitsY(CONTROL_HEIGHT); controlWidth = DpiHelper.LogicalToDeviceUnitsX(CONTROL_WIDTH); offset2Y = DpiHelper.LogicalToDeviceUnitsY(OFFSET2Y); offset2X = DpiHelper.LogicalToDeviceUnitsX(OFFSET2X); noneY = DpiHelper.LogicalToDeviceUnitsY(NONE_Y); buttonSize = DpiHelper.LogicalToDeviceUnits(buttonSizeDefault); containerSize = DpiHelper.LogicalToDeviceUnits(containerSizeDefault); } isScalingInitialized = true; } InitializeComponent(); }
public DockUI(DockEditor editor) { this.editor = editor; this.upDownOrder = new CheckBox[] { this.top, this.fill, this.bottom, this.none }; this.leftRightOrder = new CheckBox[] { this.left, this.fill, this.right }; this.tabOrder = new CheckBox[] { this.top, this.left, this.fill, this.right, this.bottom, this.none }; this.InitializeComponent(); }
public DockUI(DockEditor editor) { this.editor = editor; upDownOrder = new CheckBox[] { top, fill, bottom, none }; leftRightOrder = new CheckBox[] { left, fill, right }; tabOrder = new CheckBox[] { top, left, fill, right, bottom, none }; InitializeComponent(); }