Пример #1
0
 /// <summary>
 /// This override is used for Bookmark Processing. It will automatically
 /// call the character from Battle.Net and load it into the form.
 /// </summary>
 /// <param name="characterName">The Name of the Character. E.g.- Astrylian</param>
 /// <param name="region">The Region the Character is in. E.g.- US</param>
 /// <param name="realm">The Realm the Character is on. E.g.- Stormrage</param>
 public void LoadCharacterFromBNet(string characterName, CharacterRegion region, string realm)
 {
     // There shouldn't be any unsaved changes to a character
     // in the form as this is direct from a Bookmark
     BNetLoadDialog armoryLoad = new BNetLoadDialog();
     armoryLoad.Closed += new EventHandler(bnetLoad_Closed);
     armoryLoad.Show();
     armoryLoad.Load(characterName, region, realm);
 }
Пример #2
0
 private void ReloadFromBNet_Click(object sender, RoutedEventArgs e)
 {
     if (String.IsNullOrEmpty(NameText.Text) || String.IsNullOrEmpty(RealmText.Text)) { return; } // can't do this on an empty form
     BNetLoadDialog armoryReload = new BNetLoadDialog();
     armoryReload.Closed += new EventHandler(bnetReload_Closed);
     // Pre-populate the dialog
     armoryReload.RegionCombo.SelectedIndex = RegionCombo.SelectedIndex;
     armoryReload.NameText.Text = Character.Name;
     armoryReload.RealmText.Text = Character.Realm;
     //
     armoryReload.ShowReload();
 }
Пример #3
0
 // Battle.Net
 public void LoadFromBNet(object sender, RoutedEventArgs args)
 {
     if (_unsavedChanges) { NeedToSaveCharacter(); }
     if (CancelToSave) { CancelToSave = false; return; }
     BNetLoadDialog armoryLoad = new BNetLoadDialog();
     armoryLoad.Closed += new EventHandler(bnetLoad_Closed);
     armoryLoad.Show();
 }