Inheritance: System.Windows.Forms.Form
        public AccountManagement(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);
            user = new TextBox();
            user.Width = 2 * size + size / 4;
            user.Font = new Font("Arial", 12);
            user.Location = new Point(2 * size - size / 4, 9 * size / 8);
            if (Properties.Settings.Default.username != "null")
            {
                user.Text = Properties.Settings.Default.username;
            }
            this.Controls.Add(user);
            pass = new TextBox();
            pass.PasswordChar = '*';
            pass.Width = 2 * size + size / 4;
            pass.Font = new Font("Arial", 12);
            pass.Location = new Point(2 * size - size / 4, 13 * size / 8);
            this.Controls.Add(pass);
            remember = new CheckBox();
            remember.BackColor = Color.Transparent;
            remember.Location = new Point(15 * size / 4 + 3, 69 * size / 32 - 3);
            remember.Checked = Properties.Settings.Default.username != "null";
            this.Controls.Add(remember);

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

            initButtons();
        }
 public DropDownSetting(int pos, String name, MainForm parent, string[] items, int size)
 {
     this.pos = pos;
     this.parent = parent;
     label = new Label();
     label.Text = name;
     label.BackColor = Color.Transparent;
     text = new ComboBox();
     text.DropDownStyle = ComboBoxStyle.DropDownList;
     text.Items.AddRange(items);
     text.SelectedIndex = 0;
     checkbox = new CheckBox();
     checkbox.BackColor = Color.Transparent;
     checkbox.CheckedChanged += this.checkboxChanged;
     checkbox.Checked = true;
     parent.Controls.Add(label);
     parent.Controls.Add(text);
     parent.Controls.Add(checkbox);
     init(size);
 }
 public TextBoxSetting(int pos, String name, MainForm parent, int minRand, int maxRand, int size)
 {
     this.pos = pos;
     this.parent = parent;
     this.minRand = minRand;
     this.maxRand = maxRand;
     label = new Label();
     label.Text = name;
     label.BackColor = Color.Transparent;
     text = new TextBox();
     text.Text = "1";
     checkbox = new CheckBox();
     checkbox.BackColor = Color.Transparent;
     checkbox.CheckedChanged += this.checkboxChanged;
     checkbox.Checked = true;
     parent.Controls.Add(label);
     parent.Controls.Add(text);
     parent.Controls.Add(checkbox);
     init(size);
 }
        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();
        }