private Point getStylePanelPosition(MainForm mainForm) { GUIVarButtonsGrid guiVarButtonsGrid = new GUIVarButtonsGrid(); Size varsPanelSize = guiVarButtonsGrid.GetVarPanelSize(mainForm); GUIMidArea guiMidArea = new GUIMidArea(); Size midPanelSize = guiMidArea.GetMidPanelSize(mainForm); int x = 0; int y = varsPanelSize.Height + midPanelSize.Height; return(new Point(x, y)); }
private Point getTempoLabelPosition(MainForm mainForm, GUIMidArea guiMidArea) { Size panelSize = guiMidArea.GetMidPanelSize(mainForm); int x = Convert.ToInt32(Convert.ToDouble(mainForm.Width) * GUIConstants.RIGHT_LEFT_MARGINS); x += Convert.ToInt32(Convert.ToDouble(panelSize.Width) * GUIConstants.MID_PANEL_CONTENT_RIGHT_LEFT_MARGIN); int y = Convert.ToInt32(Convert.ToDouble(mainForm.Height) * GUIConstants.VAR_MATRIX_AREA); y += Convert.ToInt32(Convert.ToDouble(panelSize.Height) * GUIConstants.MID_PANEL_CONTENT_TOP_MARGIN); return(new Point(x, y)); }