Example #1
0
 private void Principal_User_Buttom_Click(object sender, EventArgs e)
 {
     A.SelectTab(3);
     if (Act_Work == "Parlamentario")
     {
         UserDetails_Name_txt.Text     = TempPar.ReturnName();
         UserDetails_Age_txt.Text      = Convert.ToString(TempPar.ReturnAge());
         UserDetails_Sex_txt.Text      = TempPar.ReturnSex();
         UserDetails_Password_txt.Text = TempPar.ReturnPassword();
         UserDetails_Work_txt.Text     = "Parlamentario";
     }
     else
     {
         UserDetails_Name_txt.Text     = TempAse.ReturnName();
         UserDetails_Age_txt.Text      = Convert.ToString(TempAse.ReturnAge());
         UserDetails_Sex_txt.Text      = TempAse.ReturnSex();
         UserDetails_Password_txt.Text = TempAse.ReturnPassword();
         UserDetails_Work_txt.Text     = "Asesor";
     }
 }
Example #2
0
        }//regresa a la principal

        private void UserDetails_SeeGroup_Buttom_Click(object sender, EventArgs e)
        {
            A.SelectTab(4);
            if (Act_Work == "Parlamentario")
            {
                GroupUser_Par_Txt.Text = TempPar.ReturnName();
            }
            else
            {
                TempPar = Goathemala.getParlamentarioConUnAsesor(TempAse.ReturnName());
                GroupUser_Par_Txt.Text = TempPar.ReturnName();
            }
            GroupUser_AS1_txt.Text = TempPar.listadoDeAsesores(0).ReturnName();
            GroupUser_AS2_txt.Text = TempPar.listadoDeAsesores(1).ReturnName();
            GroupUser_AS3_txt.Text = TempPar.listadoDeAsesores(2).ReturnName();
            GroupUser_AS4_txt.Text = TempPar.listadoDeAsesores(3).ReturnName();
            GroupUser_AS5_txt.Text = TempPar.listadoDeAsesores(4).ReturnName();
            GroupUser_AS6_txt.Text = TempPar.listadoDeAsesores(5).ReturnName();
            GroupUser_AS7_txt.Text = TempPar.listadoDeAsesores(6).ReturnName();
            GroupUser_AS8_txt.Text = TempPar.listadoDeAsesores(7).ReturnName();
            if (Act_Work == "Asesor")
            {
                GroupUser_X1_Buttom.Enabled = false;
                GroupUser_X2_Buttom.Enabled = false;
                GroupUser_X3_Buttom.Enabled = false;
                GroupUser_X4_Buttom.Enabled = false;
                GroupUser_X5_Buttom.Enabled = false;
                GroupUser_X6_Buttom.Enabled = false;
                GroupUser_X7_Buttom.Enabled = false;
                GroupUser_X8_Buttom.Enabled = false;
            }
            else
            {
                GroupUser_X1_Buttom.Enabled = true;
                GroupUser_X2_Buttom.Enabled = true;
                GroupUser_X3_Buttom.Enabled = true;
                GroupUser_X4_Buttom.Enabled = true;
                GroupUser_X5_Buttom.Enabled = true;
                GroupUser_X6_Buttom.Enabled = true;
                GroupUser_X7_Buttom.Enabled = true;
                GroupUser_X8_Buttom.Enabled = true;
            }
        }//Ingresa a GroupUser