private void FlowPanelDirection(FlowDirection direction, FlowLayoutPanel flowLayoutPanel) { Size characterSize = (Size)languageSettings[Property.Sizing]; flowLayoutPanel.FlowDirection = direction; if (flowLayoutPanel != panelOutput) { int a = ((Size)languageSettings[Property.Sizing]).Height; flowLayoutPanel.Height = direction.ToString().Contains("L") ? characterSize.Height + 6 : flowLayoutPanel.Controls.OfType <Control>().Sum(x => x.Height + x.Margin.Vertical) + 30; flowLayoutPanel.Width = direction.ToString().Contains("L") ? flowLayoutPanel.Controls.OfType <Control>().Sum(x => x.Width + x.Margin.Horizontal) + 30 : characterSize.Width + 6; } }
/// <summary> /// Gets the query string /// </summary> /// <returns></returns> public override string GetQueryString() => $"device/groups/{DeviceGroupId}/netflow/bandwidths?sort={(SortDirection == SortDirection.Ascending ? string.Empty : "-") + SortFlowField.ToString().ToLowerInvariant()}&direction={FlowDirection.ToString().ToLowerInvariant()}{GetTimePartialQueryStringNew()}&size={Take}&offset={Skip}&qosType={QosType}";
/// <summary> /// Gets the query string /// </summary> /// <returns></returns> public override string GetQueryString() => $"device/devices/{DeviceId}/ports?sort={(SortDirection == SortDirection.Ascending ? string.Empty : "-") + SortFlowField.ToString().ToLowerInvariant()}&direction={FlowDirection.ToString().ToLowerInvariant()}{GetTimePartialQueryStringNew()}&netflowFilter={NetflowFilter.AsUrlEncodedString()}&size={Take}&offset={Skip}";