}//ctor() private void SetUpButtons(double width, double height, string previous) { _changeThemeButton = new ValidateButton("Change theme", width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center); _changeThemeButton.MouseDown += _changeThemeButton_MouseDown; _changeThemeButton._block.VerticalAlignment = System.Windows.VerticalAlignment.Center; _resetThemeButton = new AlternativeButton("Reset theme", width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center); _resetThemeButton.MouseDown += _resetThemeButton_MouseDown; _backButton = new CancelButton("Back to " + previous, width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center); _backButton.MouseDown += _backButton_MouseDown; _renameButton = new ValidateButton("Rename project", width * 0.5, height * 0.07, new System.Windows.Thickness(0, 30, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center); _renameButton.MouseDown += _renameButton_MouseDown; }
private void SetUpRenameButton( double width) { _renameButton = new AlternativeButton(ControlsValues.RENAME, width / 5, width / 30, new System.Windows.Thickness(0, width / 70, 0, 0), new System.Windows.Thickness(0, width / 200, 0, 0), System.Windows.HorizontalAlignment.Center); _renameButton.MouseDown += _renameButton_MouseDown; }