public FormProgressBar(Settings settings)
{
InitializeComponent();
if (settings.GetBool("PortableProgressBar")) {
this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
}
Rectangle workingArea = Screen.PrimaryScreen.WorkingArea;
if (this.DwmEnabled) {
this.Left = workingArea.Width - this.Width - 4;
this.Top = workingArea.Height - this.Height - 4;
} else {
this.Left = workingArea.Width - this.Width;
this.Top = workingArea.Height - this.Height;
}
}