BlottoBeats.Client.AdvancedSettings.AdvancedSettings C# (CSharp) Method

AdvancedSettings() public method

public AdvancedSettings ( MainForm form ) : System
form MainForm
return System
        public AdvancedSettings(MainForm form)
        {
            this.Text = "Blotto Beats";
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MouseDown += this.mouseDown;
            this.MouseUp += this.mouseUp;
            this.Paint += this.paint;
            this.DoubleBuffered = true;
            this.BackColor = Color.Turquoise;
            this.TransparencyKey = Color.Turquoise;
            this.TopMost = Properties.Settings.Default.alwaysOnTop;

            size = 80;
            buttons = new List<Button>();
            this.form = form;
            this.Size = new Size(33 * size / 8, 5 * size / 2);
            ip = new TextBox();
            ip.Width = 2 * size + size / 4;
            ip.Font = new Font("Arial", 12);
            ip.Location = new Point(2 * size - size / 4, 9 * size / 8);
            ip.Text = Properties.Settings.Default.lastIP;
            this.Controls.Add(ip);
            maxBacklog = new TextBox();
            maxBacklog.Width = 2 * size - size / 4;
            maxBacklog.Font = new Font("Arial", 12);
            maxBacklog.Location = new Point(2 * size + size / 4, 13 * size / 8);
            maxBacklog.Text = Properties.Settings.Default.maxSongs + "";
            this.Controls.Add(maxBacklog);
            onTop = new CheckBox();
            onTop.BackColor = Color.Transparent;
            onTop.Location = new Point(15 * size / 4 + 3, 69 * size / 32 - 3);
            onTop.Checked = Properties.Settings.Default.alwaysOnTop;
            this.Controls.Add(onTop);

            font = new Font("Arial", 16, FontStyle.Bold);
            smallFont = new Font("Arial", 10, FontStyle.Bold);
            smallestFont = new Font("Arial", 7, FontStyle.Bold);

            initButtons();
        }