using Bloxstrap.Enums; namespace Bloxstrap.Dialogs.BootstrapperStyles { // basically just the modern dialog public partial class ProgressDialogDark : BootstrapperStyleForm { protected override string _message { get => labelMessage.Text; set => labelMessage.Text = value; } protected override ProgressBarStyle _progressStyle { get => ProgressBar.Style; set => ProgressBar.Style = value; } protected override int _progressValue { get => ProgressBar.Value; set => ProgressBar.Value = value; } protected override bool _cancelEnabled { get => this.buttonCancel.Enabled; set => this.buttonCancel.Enabled = this.buttonCancel.Visible = value; } public ProgressDialogDark(Bootstrapper? bootstrapper = null) { InitializeComponent(); Bootstrapper = bootstrapper; this.IconBox.BackgroundImage = Program.Settings.BootstrapperIcon.GetBitmap(); SetupDialog(); } private void ButtonCancel_MouseEnter(object sender, EventArgs e) { this.buttonCancel.Image = Properties.Resources.DarkCancelButtonHover; } private void ButtonCancel_MouseLeave(object sender, EventArgs e) { this.buttonCancel.Image = Properties.Resources.DarkCancelButton; } private void ProgressDialogDark_Load(object sender, EventArgs e) { this.Activate(); } } }