x86.frmMain.functionSwitch C# (CSharp) Method

functionSwitch() public method

public functionSwitch ( ) : void
return void
        public void functionSwitch()
        {
            sysConfigClass s = new sysConfigClass();
            DataTable dataTable = s.getFunction();

            string[] funNames = new string[dataTable.Rows.Count];
           for(int i=0;i<dataTable.Rows.Count;i++)
           {
               funNames[i]=dataTable.Rows[i]["function"].ToString().Trim();
               if (funNames[i] == "返现功能" )
               {
                   string isOpen = dataTable.Rows[i]["isOpen"].ToString().Trim();
                   if (isOpen != "True")
                   {
                       this.Invoke(delegatesetVisble, this.groupBox17, false);
                       this.Invoke(delegatesetVisble, this.groupBox18, false);
                       this.Invoke(delegatesetVisble, this.groupBox20, false);
                       this.Invoke(delegatesetVisble, this.groupBox21, false);



                   }
                   else
                   {

                       this.Invoke(delegatesetVisble, this.groupBox17, true);
                       this.Invoke(delegatesetVisble, this.groupBox18, true);
                       this.Invoke(delegatesetVisble, this.groupBox20, true);
                       this.Invoke(delegatesetVisble, this.groupBox21, true);

                   }
               }
           }
            
        }
        public delegate void DelegatesetVisble(Control o, bool v);
frmMain