예제 #1
0
        protected void LoadActive()
        {
            Reservationen.Clear();
            Kunden.Clear();
            Autos.Clear();


            foreach (KundeDto kunde in Service.Kunde)
            {
                Kunden.Add(kunde);
            }
            foreach (AutoDto auto in Service.Autos)
            {
                Autos.Add(auto);
            }

            foreach (ReservationDto reservation in Service.Reservation)
            {
                if (DateTime.Now > reservation.Bis)
                {
                }
                else
                {
                    Reservationen.Add(reservation);
                }
            }
            SelectedReservation = Reservationen.FirstOrDefault();
        }
예제 #2
0
        protected override void Load()
        {
            Kunden.Clear();
            foreach (KundeDto kunde in Service.GetKunden())
            {
                Kunden.Add(kunde);
            }

            Autos.Clear();
            foreach (AutoDto auto in Service.GetAutos())
            {
                Autos.Add(auto);
            }

            Reservationen.Clear();
            reservationenOriginal.Clear();
            foreach (ReservationDto res in Service.GetReservationen())
            {
                Reservationen.Add(res);
                reservationenOriginal.Add((ReservationDto)res.Clone());
            }
            selectedReservation = Reservationen.FirstOrDefault();

            reservationen.ToList().ForEach(r =>
            {
                r.Auto =
                    Autos.ToList().Find(a => a.Id == r.Auto.Id);
                r.Kunde = Kunden.ToList().Find(k => k.Id == r.Kunde.Id);
            });
        }
예제 #3
0
        private void bmnNuevoVehiculo_Click(object sender, EventArgs e)
        {
            frmNuevoVehiculo form = new frmNuevoVehiculo();

            form.Owner      = this;
            form.Aviones    = Aviones;
            form.Autos      = Autos;
            form.Colectivos = Colectivos;
            form.ShowDialog();

            if (form.estado)
            {
                if (form.tipo == 0)
                {
                    Aviones.Add(form.Avion);
                    srcAviones.ResetBindings(true);
                    dgvAviones.Refresh();
                }
                else if (form.tipo == 1)
                {
                    Autos.Add(form.Auto);
                    srcAutos.ResetBindings(true);
                    dgvAutos.Refresh();
                }
                else
                {
                    Colectivos.Add(form.Colectivo);
                    srcColectivos.ResetBindings(true);
                    dgvColectivos.Refresh();
                }
            }
        }
예제 #4
0
        protected override void Load()
        {
            Reservationen.Clear();
            reservationenOriginal.Clear();

            Kunden.Clear();
            Autos.Clear();
            if (Service.Kunden() != null)
            {
                foreach (KundeDto kunde in Service.Kunden())
                {
                    Kunden.Add(kunde);
                }
            }
            if (Service.Autos() != null)
            {
                foreach (AutoDto auto in Service.Autos())
                {
                    Autos.Add(auto);
                }
            }
            if (Service.Reservationen() != null)
            {
                foreach (ReservationDto reservation in Service.Reservationen())
                {
                    Reservationen.Add(reservation);
                    reservationenOriginal.Add((ReservationDto)reservation.Clone());
                }
            }
            SelectedReservation = Reservationen.FirstOrDefault();
        }
 protected override void Load()
 {
     Autos.Clear();
     foreach (var auto in Service.GetAutos())
     {
         Autos.Add(auto);
     }
     SelectedAuto = Autos.FirstOrDefault();
 }
예제 #6
0
        private void SaveAuto(Auto auto)
        {
            AutoAddWindow autoAddWindow = new AutoAddWindow();

            if (autoAddWindow.ShowDialog() ?? false)
            {
                Autos.Add(autoAddWindow.Advm.Auto);
                Empty = Autos.Count == 0;
            }
        }
예제 #7
0
 protected override void Load()
 {
     Autos.Clear();
     autosOriginal.Clear();
     foreach (var auto in Service.Autos)
     {
         Autos.Add(auto);
         autosOriginal.Add(auto.Clone());
     }
     SelectedAuto = Autos.FirstOrDefault();
 }
예제 #8
0
 public ReservationViewModel(AddReservationWindow view, AutoReservationService service)
 {
     _view    = view;
     _service = service;
     foreach (var autoDto in service.GetAutos())
     {
         Autos.Add(autoDto);
     }
     foreach (var kundeDto in service.GetKunden())
     {
         Kunden.Add(kundeDto);
     }
     SaveCommand = new RelayCommand(Save, () => !(Von == null || Bis == null || Auto == null || Kunde == null));
 }
예제 #9
0
 private void UpdateLists(object sender = null, EventArgs e = null)
 {
     Autos.Clear();
     foreach (var auto in _service.GetAutos())
     {
         Autos.Add(new AutoRow(auto));
     }
     Kunden.Clear();
     foreach (var kunde in _service.GetKunden())
     {
         Kunden.Add(kunde);
     }
     Reservationen.Clear();
     foreach (var reservation in _service.GetReservationen())
     {
         Reservationen.Add(reservation);
     }
 }
예제 #10
0
        protected override void Load()
        {
            Reservationen.Clear();

            Kunden.Clear();
            Autos.Clear();

            foreach (KundeDto kunde in Service.Kunde)
            {
                Kunden.Add(kunde);
            }
            foreach (AutoDto auto in Service.Autos)
            {
                Autos.Add(auto);
            }
            foreach (ReservationDto reservation in Service.Reservation)
            {
                Reservationen.Add(reservation);
            }
            SelectedReservation = Reservationen.FirstOrDefault();
        }
예제 #11
0
        protected override void Load()
        {
            Kunden.Clear();
            foreach (var kunde in Service.Kunden)
            {
                Kunden.Add(kunde);
            }

            Autos.Clear();
            foreach (var auto in Service.Autos)
            {
                Autos.Add(auto);
            }

            Reservationen.Clear();
            _reservationenOriginal.Clear();
            foreach (var reservation in Service.Reservationen)
            {
                Reservationen.Add(reservation);
                _reservationenOriginal.Add((ReservationDto)reservation.Clone());
            }
            SelectedReservation = Reservationen.FirstOrDefault();
        }
예제 #12
0
        protected override void Load()
        {
            Reservationen.Clear();
            reservationenOriginal.Clear();

            Kunden.Clear();
            Autos.Clear();

            foreach (KundeDto kunde in Service.GetKunden)
            {
                Kunden.Add(kunde);
            }
            foreach (AutoDto auto in Service.GetAutos)
            {
                Autos.Add(auto);
            }
            foreach (ReservationDto reservation in Service.GetReservationen)
            {
                Reservationen.Add(reservation);
                reservationenOriginal.Add((ReservationDto)reservation.Clone());
            }
            SelectedReservation = Reservationen.FirstOrDefault();
        }
예제 #13
0
파일: Program.cs 프로젝트: NeTeLead/olaf
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Ryze"))
            {
                return;
            }
            Chat.Print("Ryze7 Loaded!", Color.Orange);
            Bootstrap.Init(null);
            Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1500, 50);
            Q.AllowedCollisionCount = 0;
            W         = new Spell.Targeted(SpellSlot.W, 600);
            E         = new Spell.Targeted(SpellSlot.E, 600);
            R         = new Spell.Active(SpellSlot.R);
            Ignite    = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            Seraph    = new Item(3040);
            Tahoma16B = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Tahoma", Height = 15, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType
            });
            menu      = MainMenu.AddMenu("Ryze7", "Ryze");
            ComboMenu = menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.Add("ComboQ", new CheckBox("Spell [Q]"));
            ComboMenu.Add("ComboW", new CheckBox("Spell [W]"));
            ComboMenu.Add("ComboE", new CheckBox("Spell [E]"));
            ComboMenu.Add("ComboR", new CheckBox("Spell [R]"));
            ComboMenu.Add("Human", new Slider("Humanizer Delay", 1, 0, 1000));

            HarassMenu = menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("HQ", new CheckBox("Spell [Q]"));
            HarassMenu.Add("HW", new CheckBox("Spell [W]"));
            HarassMenu.Add("HE", new CheckBox("Spell [E]"));
            HarassMenu.Add("HarassMana", new Slider("Min Mana For Harass", 50, 0, 100));

            LastHitMenu = menu.AddSubMenu("LastHit Settings", "LastHit");
            LastHitMenu.Add("LHQ", new CheckBox("Spell [Q]"));
            LastHitMenu.Add("LHW", new CheckBox("Spell [W]", false));
            LastHitMenu.Add("LHE", new CheckBox("Spell [E]", false));
            LastHitMenu.Add("LastHitMana", new Slider("Min Mana For LastHit", 50, 0, 100));

            ClearMenu = menu.AddSubMenu("LaneClear Settings", "LaneClear");
            ClearMenu.Add("LCQ", new CheckBox("Spell [Q]"));
            ClearMenu.Add("LCW", new CheckBox("Spell [W]"));
            ClearMenu.Add("LCE", new CheckBox("Spell [E]"));
            ClearMenu.Add("LCR", new CheckBox("Spell [R]", false));
            ClearMenu.Add("LaneClearMana", new Slider("Min Mana For LaneClear", 50, 0, 100));

            JungleMenu = menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleMenu.Add("JQ", new CheckBox("Spell [Q]"));
            JungleMenu.Add("JW", new CheckBox("Spell [W]"));
            JungleMenu.Add("JE", new CheckBox("Spell [E]"));
            JungleMenu.Add("JR", new CheckBox("Spell [R]", false));
            JungleMenu.Add("JungleClearMana", new Slider("Min Mana For JungleClear", 30, 0, 100));

            KsMenu = menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KsMenu.AddGroupLabel("KillSteal Setting");
            KsMenu.Add("KsQ", new CheckBox("Spell [Q]"));
            KsMenu.Add("KsW", new CheckBox("Spell [W]"));
            KsMenu.Add("KsE", new CheckBox("Spell [E]"));
            KsMenu.Add("KsIgnite", new CheckBox("Use [Ignite] KillSteal"));

            Misc = menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("AntiGap Setting");
            Misc.Add("gapw", new CheckBox("AntiGap [W]"));
            Misc.AddGroupLabel("Seraph Settings");
            Misc.Add("dts", new CheckBox("Use Seraph"));
            Misc.Add("Hp", new Slider("HP For Seraph", 30, 0, 100));
            Misc.AddGroupLabel("Skin Changer");
            Misc.Add("checkSkin", new CheckBox("Use Skin Changer"));
            Misc.Add("skin.Id", new ComboBox("Skin Mode", 3, "Default", "1", "2", "3", "4", "5", "6", "7", "8"));

            Autos = menu.AddSubMenu("Stacks Settings", "Stacks");
            Autos.Add("AutoStack", new KeyBind("Auto Stack", false, KeyBind.BindTypes.PressToggle, 'T'));
            Autos.Add("MaxStack", new Slider("Keep Max Stacks", 2, 1, 5));
            Autos.Add("StackMana", new Slider("Min Mana AutoStack", 70, 0, 100));
            Autos.Add("DrawSt", new CheckBox("Draw Stacks"));

            Draws = menu.AddSubMenu("Drawings Settings", "Draw");
            Draws.AddSeparator(10);
            Draws.AddGroupLabel("Drawings Setting");
            Draws.Add("DrawQ", new CheckBox("Q Range"));
            Draws.Add("DrawW", new CheckBox("W / E Range"));

            Drawing.OnDraw        += Drawing_OnDraw;
            Game.OnTick           += Game_OnTick;
            Gapcloser.OnGapcloser += AntiGapCloser;
        }
예제 #14
0
파일: Jax.cs 프로젝트: spall9/Doctor-
        static void OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Jax"))
            {
                return;
            }
            Chat.Print("Doctor's Jax Loaded!", Color.White);
            Chat.Print("Mercedes7!", Color.Red);
            Q      = new Spell.Targeted(SpellSlot.Q, 700);
            W      = new Spell.Active(SpellSlot.W);
            E      = new Spell.Active(SpellSlot.E, 350);
            R      = new Spell.Active(SpellSlot.R);
            Botrk  = new Item(ItemId.Blade_of_the_Ruined_King);
            Bil    = new Item(3144, 475f);
            Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            Menu   = MainMenu.AddMenu("Doctor's Jax", "Jax");
            Menu.AddSeparator();
            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("comboMode", new ComboBox("Combo Mode:", 0, "E => Q", "Q => E"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("ComboQ", new CheckBox("Combo [Q]"));
            ComboMenu.Add("WaitE", new CheckBox("Only [Q] if [E] ready", false));
            ComboMenu.Add("ComboW", new CheckBox("Combo [W]"));
            ComboMenu.Add("ComboE", new CheckBox("Combo [E]"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("ComboR", new CheckBox("Use [R] x Enemies Around"));
            ComboMenu.Add("MinR", new Slider("x enemies around use [R]", 2, 1, 5));

            Autos = Menu.AddSubMenu("Auto E/R Settings", "Autos");
            Autos.AddGroupLabel("Automatic Settings");
            Autos.Add("AutoE", new CheckBox("Auto [E] Enemies In Range"));
            Autos.Add("minE", new Slider("Min Enemies Auto [E]", 2, 1, 5));
            Autos.Add("AutoR", new CheckBox("Auto [R] If My HP =<"));
            Autos.Add("mauR", new Slider("My HP Auto [R]", 50));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("HarassQ", new CheckBox("Harass [Q]", false));
            HarassMenu.Add("HarassW", new CheckBox("Harass [W]"));
            HarassMenu.Add("HarassE", new CheckBox("Harass [E]"));
            HarassMenu.Add("ManaQ", new Slider("Min Mana For Harass", 30));

            LaneClearMenu = Menu.AddSubMenu("LaneClear Settings", "LaneClear");
            LaneClearMenu.AddGroupLabel("LaneClear Settings");
            LaneClearMenu.Add("LCQ", new CheckBox("Lane Clear [Q]", false));
            LaneClearMenu.Add("LCW", new CheckBox("Lane Clear [W]"));
            LaneClearMenu.Add("LCE", new CheckBox("Lane Clear [E]", false));
            LaneClearMenu.Add("ManaLC", new Slider("Min Mana LaneClear [Q]", 60));
            LaneClearMenu.AddSeparator();
            LaneClearMenu.AddGroupLabel("LastHit Settings");
            LaneClearMenu.Add("LHQ", new CheckBox("Lane Clear [Q]", false));
            LaneClearMenu.Add("LHW", new CheckBox("Lane Clear [W]"));
            LaneClearMenu.Add("ManaLH", new Slider("Min Mana LaneClear [Q]", 60));

            JungleClearMenu = Menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            JungleClearMenu.Add("QJungle", new CheckBox("Spell [Q]"));
            JungleClearMenu.Add("WJungle", new CheckBox("Spell [W]"));
            JungleClearMenu.Add("EJungle", new CheckBox("Spell [E]"));
            JungleClearMenu.Add("MnJungle", new Slider("Min Mana For JungleClear", 10));

            Misc = Menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("AntiGap Settings");
            Misc.Add("antiGap", new CheckBox("Use [E] AntiGapcloser"));
            Misc.AddGroupLabel("Items Settings");
            Misc.Add("BOTRK", new CheckBox("Use [Botrk]"));
            Misc.Add("ihp", new Slider("My HP Use BOTRK <=", 50));
            Misc.Add("ihpp", new Slider("Enemy HP Use BOTRK <=", 50));

            KillStealMenu = Menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("KsQ", new CheckBox("[Q] KillSteal", false));
            KillStealMenu.Add("ign", new CheckBox("[Ignite] KillSteal"));

            Drawings = Menu.AddSubMenu("Draw Settings", "Draw");
            Drawings.AddGroupLabel("Drawing Settings");
            Drawings.Add("DrawQ", new CheckBox("Q Range"));
            Drawings.Add("DrawE", new CheckBox("E Range", false));

            Drawing.OnDraw         += Drawing_OnDraw;
            Game.OnUpdate          += Game_OnUpdate;
            Orbwalker.OnPostAttack += ResetAttack;
        }
예제 #15
0
 private void New()
 {
     Autos.Add(new AutoDto());
 }
예제 #16
0
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (!_Player.ChampionName.Contains("Ryze"))
            {
                return;
            }
            Chat.Print("Ball Ryze7 Loaded!", Color.GreenYellow);
            Chat.Print("Doctor7 Good Luck!", Color.Yellow);
            Bootstrap.Init(null);

            Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1500, 50);
            Q.AllowedCollisionCount = 0;
            W = new Spell.Targeted(SpellSlot.W, 600);
            E = new Spell.Targeted(SpellSlot.E, 600);
            R = new Spell.Active(SpellSlot.R);
            if (_Player.GetSpellSlotFromName("summonerdot") != SpellSlot.Unknown)
            {
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }
            Seraph = new Item(3040);
            menu   = MainMenu.AddMenu("Ryze7", "Ryze");
            menu.AddLabel(" FEATURES ");
            menu.AddLabel(" Combo Mode ");
            menu.AddLabel(" Auto Stacks ");
            menu.AddLabel(" Block AA In Combo ");
            menu.AddLabel(" Leave Feedback For Any Bugs ");

            ComboMenu = menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.Add("ComboQ", new CheckBox("Spell [Q]"));
            ComboMenu.Add("ComboW", new CheckBox("Spell [W]"));
            ComboMenu.Add("ComboE", new CheckBox("Spell [E]"));
            ComboMenu.Add("ComboR", new CheckBox("Spell [R]"));
            ComboMenu.Add("Human", new Slider("Humanizer Delay", 200, 0, 1000));

            HarassMenu = menu.AddSubMenu("Harass Settings", "Harass");
            HarassMenu.Add("HQ", new CheckBox("Spell [Q]"));
            HarassMenu.Add("HW", new CheckBox("Spell [W]"));
            HarassMenu.Add("HE", new CheckBox("Spell [E]"));
            HarassMenu.Add("HarassMana", new Slider("Min Mana For Harass", 50, 0, 100));

            LastHitMenu = menu.AddSubMenu("LastHit Settings", "LastHit");
            LastHitMenu.Add("LHQ", new CheckBox("Spell [Q]"));
            LastHitMenu.Add("LHW", new CheckBox("Spell [W]", false));
            LastHitMenu.Add("LHE", new CheckBox("Spell [E]", false));
            LastHitMenu.Add("LastHitMana", new Slider("Min Mana For LastHit", 50, 0, 100));

            ClearMenu = menu.AddSubMenu("LaneClear Settings", "LaneClear");
            ClearMenu.Add("LCQ", new CheckBox("Spell [Q]"));
            ClearMenu.Add("LCW", new CheckBox("Spell [W]"));
            ClearMenu.Add("LCE", new CheckBox("Spell [E]"));
            ClearMenu.Add("LCR", new CheckBox("Spell [R]"));
            ClearMenu.Add("LaneClearMana", new Slider("Min Mana For LaneClear", 50, 0, 100));

            JungleMenu = menu.AddSubMenu("JungleClear Settings", "JungleClear");
            JungleMenu.Add("JQ", new CheckBox("Spell [Q]"));
            JungleMenu.Add("JW", new CheckBox("Spell [W]"));
            JungleMenu.Add("JE", new CheckBox("Spell [E]"));
            JungleMenu.Add("JR", new CheckBox("Spell [R]"));
            JungleMenu.Add("JungleClearMana", new Slider("Min Mana For JungleClear", 30, 0, 100));

            KsMenu = menu.AddSubMenu("KillSteal Settings", "KillSteal");
            KsMenu.AddSeparator(10);
            KsMenu.AddGroupLabel("KillSteal Setting");
            KsMenu.Add("KsQ", new CheckBox("Spell [Q]"));
            KsMenu.Add("KsW", new CheckBox("Spell [W]"));
            KsMenu.Add("KsE", new CheckBox("Spell [E]"));
            KsMenu.Add("KsIgnite", new CheckBox("Use [Ignite] KillSteal"));

            Misc = menu.AddSubMenu("Misc Settings", "Misc");
            Misc.AddGroupLabel("AntiGap Setting");
            Misc.Add("gapw", new CheckBox("AntiGap [W]"));
            Misc.AddGroupLabel("Seraph Settings");
            Misc.Add("dts", new CheckBox("Use Seraph"));
            Misc.Add("Hp", new Slider("HP For Seraph", 30, 0, 100));
            Misc.AddGroupLabel("Skin Changer");
            Misc.Add("checkSkin", new CheckBox("Use Skin Changer"));
            Misc.Add("skin.Id", new ComboBox("Skin Mode", 3, "Default", "1", "2", "3", "4", "5", "6", "7", "8"));


            Autos = menu.AddSubMenu("Stacks Settings", "Stacks");
            Autos.Add("AutoStack", new KeyBind("Auto Stack", true, KeyBind.BindTypes.PressToggle, 'T'));
            Autos.Add("MaxStack", new Slider("Keep Max Stacks", 2, 1, 5));
            Autos.Add("StackMana", new Slider("Min Mana AutoStack", 70, 0, 100));

            Draws = menu.AddSubMenu("Drawings Settings", "Draw");
            Draws.AddSeparator(10);
            Draws.AddGroupLabel("Drawings Setting");
            Draws.Add("DrawQ", new CheckBox("Q Range"));
            Draws.Add("DrawW", new CheckBox("W / E Range"));

            Drawing.OnDraw        += Drawing_OnDraw;
            Game.OnTick           += Game_OnTick;
            Gapcloser.OnGapcloser += AntiGapCloser;
        }