x86.frmMain.freashWW C# (CSharp) Method

freashWW() private method

private freashWW ( ) : void
return void
        void freashWW()
        {
            this.rw_com_ww.Items.Clear();
            string[] strArray = sys.LoginUser.WW.Split('|');
            for (int index = 0; index < strArray.Length; ++index)
            {
                if (strArray[index].Trim() != "")
                    this.rw_com_ww.Items.Add((object)strArray[index].Trim());
               

            }
            try
            {
                this.rw_com_ww.SelectedIndex = 0;
            }
            catch (Exception )
            {
                this.rw_com_ww.SelectedIndex = -1;
            }
            if ((sys.LoginUser.hyDj <= 8 && this.rw_com_ww.Items.Count >= 3) || this.rw_com_ww.Items.Count >= 20 || sys.LoginUser.hyDj == 0)
                this.but_add_ww.Enabled = false;
            else
              
                this.but_add_ww.Enabled = true;
            if (this.rw_com_ww.Items.Count == 0)
            {
                this.but_add_ww.Enabled = true;
            }
            if (rw_com_ww.Items.Count == 1)
            {
                this.but_add_del.Enabled = false;
            }
            else
            {
                this.but_add_del.Enabled = true;
 
            }

          

            label28.Text="";
            for (int i = 0; i < rw_com_ww.Items.Count; i++)
            {
                label28.Text +=  rw_com_ww.Items[i].ToString() + "|";
            }
        }
        private void button2_Click(object sender, EventArgs e)
frmMain