public SettingsLayout(Tracker par)
        {
            InitializeComponent();

            parent = par;

            numericUpDownOpacity.Value = (int)(100 * par.Opacity);
            trackBarOpacity.Value      = (int)(100 * par.Opacity);

            if (parent.TrackerSize == TrackerPixelSizes.size420px)
            {
                this.rb_420.Checked = true;
                this.rb_640.Checked = false;
                this.rb_300.Checked = false;
                this.rb_720.Checked = false;
            }
            else if (parent.TrackerSize == TrackerPixelSizes.size640px)
            {
                this.rb_420.Checked = false;
                this.rb_640.Checked = true;
                this.rb_300.Checked = false;
                this.rb_720.Checked = false;
            }
            else if (parent.TrackerSize == TrackerPixelSizes.size300px)
            {
                this.rb_420.Checked = false;
                this.rb_640.Checked = false;
                this.rb_300.Checked = true;
                this.rb_720.Checked = false;
            }
            else if (parent.TrackerSize == TrackerPixelSizes.size720px)
            {
                this.rb_420.Checked = false;
                this.rb_640.Checked = false;
                this.rb_300.Checked = false;
                this.rb_720.Checked = true;
            }
            else
            {
                //parent.Log.WriteToLog("**ERROR** : Invalid Size (" + parent.TrackerSize + ")");
                parent.TrackerSize = TrackerPixelSizes.size640px;

                this.rb_420.Checked = false;
                this.rb_640.Checked = true;
                this.rb_300.Checked = false;
                this.rb_720.Checked = false;
            }

            if (parent.RefreshRate == (AutoUpdateRefreshRates)500)
            {
                this.rb_500_mHz.Checked = true;
                this.rb_10_hz.Checked   = false;
                this.rb_1_hz.Checked    = false;
                this.rb_60_hz.Checked   = false;
            }
            else if (parent.RefreshRate == (AutoUpdateRefreshRates)1000)
            {
                this.rb_500_mHz.Checked = false;
                this.rb_10_hz.Checked   = false;
                this.rb_1_hz.Checked    = true;
                this.rb_60_hz.Checked   = false;
            }
            else if (parent.RefreshRate == (AutoUpdateRefreshRates)10000)
            {
                this.rb_500_mHz.Checked = false;
                this.rb_10_hz.Checked   = true;
                this.rb_1_hz.Checked    = false;
                this.rb_60_hz.Checked   = false;
            }
            else if (parent.RefreshRate == (AutoUpdateRefreshRates)60000)
            {
                this.rb_500_mHz.Checked = false;
                this.rb_10_hz.Checked   = false;
                this.rb_1_hz.Checked    = false;
                this.rb_60_hz.Checked   = true;
            }
            else
            {
                //parent.Log.WriteToLog("**ERROR** : Invalid Refresh Rate (" + parent.RefreshRate + ")");
                parent.RefreshRate = (AutoUpdateRefreshRates)10000;

                this.rb_500_mHz.Checked = false;
                this.rb_10_hz.Checked   = true;
                this.rb_1_hz.Checked    = false;
                this.rb_60_hz.Checked   = false;
            }

            this.cb_shards.Checked      = parent.DisplayShards;
            this.cb_teleporters.Checked = parent.TrackTeleporters;
            this.cb_trees.Checked       = parent.TrackTrees;
            this.Text = "Tracker Layer v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();


            rbRandoTrees.Checked = true;

            rbRandoEvents.Enabled       = false;
            rbRandoTrees.Enabled        = false;
            rbOriAllSkills.Enabled      = false;
            rbOriAllCells.Enabled       = false;
            rbReverseEventOrder.Enabled = false;

            Refresh();
        }