AddonHelper.FormProgressBar.FormProgressBar C# (CSharp) Method

FormProgressBar() public method

public FormProgressBar ( AddonHelper.Settings settings ) : System
settings AddonHelper.Settings
return System
        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;
            }
        }