mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 02:21:27 -07:00
51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Bloxstrap.Dialogs
|
|
{
|
|
// windows: https://youtu.be/VpduiruysuM?t=18
|
|
// mac: https://youtu.be/ncHhbcVDRgQ?t=63
|
|
|
|
public partial class LegacyDialog2009 : BootstrapperDialogForm
|
|
{
|
|
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 = value;
|
|
}
|
|
|
|
public LegacyDialog2009(Bootstrapper? bootstrapper = null)
|
|
{
|
|
InitializeComponent();
|
|
|
|
Bootstrapper = bootstrapper;
|
|
|
|
ScaleWindow();
|
|
SetupDialog();
|
|
}
|
|
|
|
private void LegacyDialog2009_Load(object sender, EventArgs e)
|
|
{
|
|
this.Activate();
|
|
}
|
|
}
|
|
}
|