Exemplo n.º 1
0
        public void LoadCharacterFromArmory(string characterName, CharacterRegion region, string realm)
        {
            ArmoryLoadDialog armoryLoad = new ArmoryLoadDialog();

            armoryLoad.Closed += new EventHandler(armoryLoad_Closed);
            armoryLoad.Show();
            armoryLoad.Load(characterName, region, realm);
        }
Exemplo n.º 2
0
        private void LoadFromArmory(object sender, RoutedEventArgs args)
        {
            if (_unsavedChanges)
            {
                NeedToSaveCharacter();
            }
            ArmoryLoadDialog armoryLoad = new ArmoryLoadDialog();

            armoryLoad.Closed += new EventHandler(armoryLoad_Closed);
            armoryLoad.Show();
        }
Exemplo n.º 3
0
        private void armoryLoad_Closed(object sender, EventArgs e)
        {
            ArmoryLoadDialog ald = sender as ArmoryLoadDialog;

            if (((ArmoryLoadDialog)sender).DialogResult.GetValueOrDefault(false))
            {
                Character character = ald.Character;
                // The removes force it to put those items at the end.
                // So we can use that for recall later on what was last used
                if (Rawr.Properties.RecentSettings.Default.RecentChars.Contains(character.Name))
                {
                    Rawr.Properties.RecentSettings.Default.RecentChars.Remove(character.Name);
                }
                if (Rawr.Properties.RecentSettings.Default.RecentServers.Contains(character.Realm))
                {
                    Rawr.Properties.RecentSettings.Default.RecentServers.Remove(character.Realm);
                }
                Rawr.Properties.RecentSettings.Default.RecentChars.Add(character.Name);
                Rawr.Properties.RecentSettings.Default.RecentServers.Add(character.Realm);
                Rawr.Properties.RecentSettings.Default.RecentRegion = character.Region.ToString();

                this.Character = character;
            }
        }
Exemplo n.º 4
0
 // Armory (Retired)
 public void LoadCharacterFromArmory(string characterName, CharacterRegion region, string realm)
 {
     ArmoryLoadDialog armoryLoad = new ArmoryLoadDialog();
     armoryLoad.Closed += new EventHandler(armoryLoad_Closed);
     armoryLoad.Show();
     armoryLoad.Load(characterName, region, realm);
 }