private void UpdateButtonsPositions() { if (ScreenSize.X > ScreenSize.Y) { tabs[0].SetPositionAndSize(Point.Zero, tabSize); tabs[1].SetPositionAndSize(new Point(0, tabSize.Y), tabSize); tabs[2].SetPositionAndSize(new Point(0, tabSize.Y * 2), tabSize); } else { tabs[0].SetPositionAndSize(Point.Zero, tabSize); tabs[1].SetPositionAndSize(new Point(tabSize.X, 0), tabSize); tabs[2].SetPositionAndSize(new Point(tabSize.X * 2, 0), tabSize); } btnBack.SetPositionAndSize(new Point(ScreenSize.X / 2 - btnBackSize.X / 2, (int)(ScreenSize.Y - btnBackSize.Y * 1.2f)), btnBackSize); if (ScreenSize.X > ScreenSize.Y) { btnNextPage.SetPositionAndSize(new Point(paginatorPosition.X, paginatorPosition.Y), new Point(paginatorBtnSize)); btnPrevPage.SetPositionAndSize(new Point(paginatorPosition.X, paginatorPosition.Y + paginatorBtnSize * 3), new Point(paginatorBtnSize)); } else { btnPrevPage.SetPositionAndSize(new Point(paginatorPosition.X, paginatorPosition.Y), new Point(paginatorBtnSize)); btnNextPage.SetPositionAndSize(new Point(paginatorPosition.X + paginatorBtnSize * 3, paginatorPosition.Y), new Point(paginatorBtnSize)); } }
private void UpdateButtonsPositionAndSize() { btnLinkGithub.SetPositionAndSize(linkGithubPosition, linkButtonSize); btnLinkTheWitness.SetPositionAndSize(linkTheWitnessPosition, linkButtonSize); btnBack.SetPositionAndSize(backButtonPosition, backButtonSize); }
private void UpdateButtonsPositionAndSize() { btnDown.SetPositionAndSize(area.Location, buttonSize); btnUp.SetPositionAndSize(new Point(area.X + area.Width - buttonSize.X, area.Y), buttonSize); }