示例#1
0
        public void ListarDatosCarreras(int intOpcion, string ClaveCCT = null)
        {
            bool    bolExistenDatos = false;
            DataSet datDatos        = new DataSet();

            if (ExisteConexion())
            {
                bolExistenDatos = objCombo.ObtenerCatalogoProcedimiento(intOpcion, ref datDatos, ClaveCCT);

                if (bolExistenDatos == true)
                {
                    List <CCombo> lisDatos = new List <CCombo>();
                    foreach (DataRow fila in datDatos.Tables[0].Rows)
                    {
                        CCombo item = new CCombo()
                        {
                            Id          = fila[0].ToString(),
                            Descripcion = fila[1].ToString()
                        };
                        lisDatos.Add(item);
                    }
                    ViewCombo.LlenarCombo = lisDatos;
                }
                // else
                // vieGraficas.Mensaje("No hay registros!!!", 3);
            }
            // else
            // vieGraficas.Mensaje("No hay conexión de Red con el Servidor.", 4);
        }
示例#2
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            CHeal.AutoHeal();
            CUltimate.SmartSave();
            CUltimate.TeamfightUltimate();

            if (CConfig.ConfigMenu.Item("comboActive").GetValue <KeyBind>().Active)
            {
                CCombo.Combo();
            }

            foreach (var enemy in ObjectHandler.Get <Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget(CSpell.E.Range)))
            {
                if (enemy.HasBuffOfType(BuffType.Stun) || enemy.HasBuffOfType(BuffType.Snare) ||
                    enemy.HasBuffOfType(BuffType.Charm) || enemy.HasBuffOfType(BuffType.Fear) ||
                    enemy.HasBuffOfType(BuffType.Taunt) || enemy.HasBuffOfType(BuffType.Suppression) ||
                    enemy.IsStunned || enemy.HasBuff("Recall"))
                {
                    CSpell.E.Cast(enemy);
                }
                else
                {
                    CSpell.E.CastIfHitchanceEquals(enemy, HitChance.Immobile, true);
                }
            }
        }
示例#3
0
 public void Dispose()
 {
     if (Main.ComboPanel.Combos.Contains(CCombo))
     {
         Main.ComboPanel.Combos.Remove(CCombo);
     }
     CCombo.Dispose();
 }
示例#4
0
        public static CCombo CreateComboBox(Control parent, int x, int y, int width)
        {
            CCombo item = new CCombo();

            item.Parent = parent;
            item.Left   = x;
            item.Top    = y;
            item.Width  = width;
            return(item);
        }
示例#5
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            CHeal.AutoHeal();
            CUltimate.SmartSave();
            CUltimate.TeamfightUltimate();

            if (CConfig.ConfigMenu.Item("comboActive").GetValue <KeyBind>().Active)
            {
                CCombo.Combo();
            }
        }
示例#6
0
 //constractor
 public WCombo(ICombo InterfazCombo)
 {
     objCombo  = new CCombo();
     Manager   = new ManagerBD();
     ViewCombo = InterfazCombo;
 }