protected override void OnResize(EventArgs e)
{
base.OnResize(e);
int buttonHeight = (int)(Data.VerticalDLU * 15.5);
int buttonWidth = (int)(Data.HorizontalDLU * 60);
int btnVertSpace = (int)(Data.VerticalDLU * 5.5);
int btnHrzSpace = (int)(Data.HorizontalDLU * 3);
int space = btnHrzSpace;
int textHeight = Font.Height;
int nudWidth = buttonWidth - space - 1;
int border = 2;
// pnlBase
pnlBase.Size = new Size(ClientSize.Width - 2 * space, ClientSize.Height - 2 * btnVertSpace - buttonHeight - space);
pnlBase.Location = new Point(space, space);
// Labels
lblAccountCurrency.Location = new Point(border + btnHrzSpace, 0 * buttonHeight + 1 * space + 8);
lblInitialAccount.Location = new Point(border + btnHrzSpace, 1 * buttonHeight + 2 * space + 6);
lblLeverage.Location = new Point(border + btnHrzSpace, 2 * buttonHeight + 3 * space + 8);
lblExchangeRate.Location = new Point(border + btnHrzSpace, 3 * buttonHeight + 4 * space + 7);
lblExchangeRateInfo.Location = new Point(border + btnHrzSpace, 4 * buttonHeight + 5 * space + 8);
lblExchangeRateInfo.Size = new Size(pnlBase.ClientSize.Width - 2 * space - 2 * border, pnlBase.ClientSize.Height - border - space - lblExchangeRateInfo.Top);
// Params
int nudLeft = pnlBase.ClientSize.Width - nudWidth - btnHrzSpace - border;
cbxAccountCurrency.Size = new Size(nudWidth, buttonHeight);
cbxAccountCurrency.Location = new Point(nudLeft, 0 * buttonHeight + 1 * space + 4);
nudInitialAccount.Size = new Size(nudWidth, buttonHeight);
nudInitialAccount.Location = new Point(nudLeft, 1 * buttonHeight + 2 * space + 4);
cbxLeverage.Size = new Size(nudWidth, buttonHeight);
cbxLeverage.Location = new Point(nudLeft, 2 * buttonHeight + 3 * space + 4);
nudExchangeRate.Size = new Size(nudWidth, buttonHeight);
nudExchangeRate.Location = new Point(nudLeft, 3 * buttonHeight + 4 * space + 4);
tbxExchangeRate.Size = new Size(nudWidth, buttonHeight);
tbxExchangeRate.Location = new Point(nudLeft, 3 * buttonHeight + 4 * space + 4);
// Button Cancel
btnCancel.Size = new Size(buttonWidth, buttonHeight);
btnCancel.Location = new Point(ClientSize.Width - buttonWidth - btnHrzSpace, ClientSize.Height - buttonHeight - btnVertSpace);
// Button Default
btnDefault.Size = new Size(buttonWidth, buttonHeight);
btnDefault.Location = new Point(btnCancel.Left - buttonWidth - btnHrzSpace, ClientSize.Height - buttonHeight - btnVertSpace);
// Button Accept
btnAccept.Size = new Size(buttonWidth, buttonHeight);
btnAccept.Location = new Point(btnDefault.Left - buttonWidth - btnHrzSpace, ClientSize.Height - buttonHeight - btnVertSpace);
return;
}