private void btnOk_Click(object sender, EventArgs e)
        {
            if (cbEnable.Checked == true)
            {
                _host.SendText("#var ExpTracker.Window 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.Window 0");
            }

            if (cbRankGain.Checked == true)
            {
                _host.SendText("#var ExpTracker.ShowRankGain 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.ShowRankGain 0");
            }

            if (cbLearningRate.Checked == true)
            {
                _host.SendText("#var ExpTracker.LearningRate 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.LearningRate 0");
            }

            if (cbLearningRateNumber.Checked == true)
            {
                _host.SendText("#var ExpTracker.LearningRateNumber 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.LearningRateNumber 0");
            }

            if (cbTrackSleep.Checked == true)
            {
                _host.SendText("#var ExpTracker.TrackSleep 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.TrackSleep 0");
            }

            if (cbEchoSleep.Checked == true)
            {
                _host.SendText("#var ExpTracker.EchoSleep 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.EchoSleep 0");
            }
            _host.SendText("#var {ExpTracker.Echo} {" + txtEcho.Text.Trim() + "}");

            if (comboSort.Text == "A to Z")
            {
                _host.SendText("#var ExpTracker.SortType 0");
            }
            else if (comboSort.Text == "Left to Right")
            {
                _host.SendText("#var ExpTracker.SortType 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.SortType 2");
            }

            if (cbGagExp.Checked == true)
            {
                _host.SendText("#var ExpTracker.GagExp 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.GagExp 0");
            }

            if (cbShort.Checked == true)
            {
                _host.SendText("#var ExpTracker.ShortNames 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.ShortNames 0");
            }

            _host.SendText("#var {ExpTracker.Color.RankGained} {" + txtRankGained.Text.Trim() + "}");
            _host.SendText("#var {ExpTracker.Color.Learned} {" + txtLearned.Text.Trim() + "}");
            _host.SendText("#var {ExpTracker.Color.Normal} {" + txtNormal.Text.Trim() + "}");

            _host.SendText("#var save");

            this.Close();
        }
Example #2
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (cbEnable.Checked == true)
            {
                _host.SendText("#var ExpTracker.Window 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.Window 0");
            }

            if (cbRankGain.Checked == true)
            {
                _host.SendText("#var ExpTracker.ShowRankGain 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.ShowRankGain 0");
            }

            if (cbLearningRate.Checked == true)
            {
                _host.SendText("#var ExpTracker.LearningRate 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.LearningRate 0");
            }

            if (cbLearningRateNumber.Checked == true)
            {
                _host.SendText("#var ExpTracker.LearningRateNumber 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.LearningRateNumber 0");
            }

            if (cbTrackSleep.Checked == true)
            {
                _host.SendText("#var ExpTracker.TrackSleep 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.TrackSleep 0");
            }
            if (cbEchoSleep.Checked == true)
            {
                _host.SendText("#var ExpTracker.EchoSleep 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.EchoSleep 0");
            }

            if (cbGagExp.Checked == true)
            {
                _host.SendText("#var ExpTracker.GagExp 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.GagExp 0");
            }

            if (cbShort.Checked == true)
            {
                _host.SendText("#var ExpTracker.ShortNames 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.ShortNames 0");
            }

            if (cbPersistent.Checked == true)
            {
                _host.SendText("#var ExpTracker.Persistent 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.Persistent 0");
            }

            if (cbCountSkills.Checked == true)
            {
                _host.SendText("#var ExpTracker.CountSkills 1");
            }
            else
            {
                _host.SendText("#var ExpTracker.CountSkills 0");
            }
            _host.SendText("#var ExpTracker.CountMinMindstate " + updownMinMindstate.Value.ToString());


            if (comboExpSort.Text == "A to Z")
            {
                _host.SendText("#var ExpTracker.SortType 0");
            }
            else if (comboExpSort.Text == "Left to Right")
            {
                _host.SendText("#var ExpTracker.SortType 1");
            }
            else if (comboExpSort.Text == "Learning Rate")
            {
                _host.SendText("#var ExpTracker.SortType 2");
            }
            else
            {
                _host.SendText("#var ExpTracker.SortType 3");
            }

            if (comboReportSort.Text == "A to Z")
            {
                _host.SendText("#var ExpTracker.ReportType 0");
            }
            else if (comboReportSort.Text == "Left to Right")
            {
                _host.SendText("#var ExpTracker.ReportType 1");
            }
            else if (comboReportSort.Text == "Learning Rate")
            {
                _host.SendText("#var ExpTracker.ReportType 2");
            }
            else
            {
                _host.SendText("#var ExpTracker.ReportType 3");
            }

            _host.SendText("#var {ExpTracker.Color.RankGained} {" + txtRankGained.Text + "}");
            _host.SendText("#var {ExpTracker.Color.Learned} {" + txtLearned.Text + "}");
            _host.SendText("#var {ExpTracker.Color.Normal} {" + txtNormal.Text + "}");

            if (cbEchoExp.Checked == true)
            {
                _host.SendText("#var {ExpTracker.EchoExp} {1}");
            }
            else
            {
                _host.SendText("#var {ExpTracker.EchoExp} {0}");
            }

            _host.SendText("#var {ExpTracker.Color.EchoGained} {" + txtEchoGain.Text + "}");
            _host.SendText("#var {ExpTracker.Color.EchoPulsed} {" + txtEchoPulse.Text + "}");

            _host.SendText("#var save");

            this.Close();
        }