RatioMaster_source.RM.cmbStopAfter_SelectedIndexChanged C# (CSharp) Method

cmbStopAfter_SelectedIndexChanged() private method

private cmbStopAfter_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void cmbStopAfter_SelectedIndexChanged(object sender, EventArgs e)
        {
            if ((string)cmbStopAfter.SelectedItem == "Never")
            {
                lblStopAfter.Text = "";
                txtStopValue.Text = "";
                txtStopValue.Visible = false;
            }

            if ((string)cmbStopAfter.SelectedItem == "After time:")
            {
                lblStopAfter.Text = "seconds";
                txtStopValue.Text = "3600";
                txtStopValue.Visible = true;
            }

            if ((string)cmbStopAfter.SelectedItem == "When seeders <")
            {
                lblStopAfter.Text = "";
                txtStopValue.Text = "10";
                txtStopValue.Visible = true;
            }

            if ((string)cmbStopAfter.SelectedItem == "When leechers <")
            {
                lblStopAfter.Text = "";
                txtStopValue.Text = "10";
                txtStopValue.Visible = true;
            }

            if ((string)cmbStopAfter.SelectedItem == "When uploaded >")
            {
                lblStopAfter.Text = "Mb";
                txtStopValue.Text = "1024";
                txtStopValue.Visible = true;
            }

            if ((string)cmbStopAfter.SelectedItem == "When downloaded >")
            {
                lblStopAfter.Text = "Mb";
                txtStopValue.Text = "1024";
                txtStopValue.Visible = true;
            }

            if ((string)cmbStopAfter.SelectedItem == "When leechers/seeders <")
            {
                lblStopAfter.Text = "";
                txtStopValue.Text = "1,000";
                txtStopValue.Visible = true;
            }
        }