public SaveTalentSpecDialog(TalentsBase spec, int tree1, int tree2, int tree3)
        {
            InitializeComponent();

#if !SILVERLIGHT
            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            this.WindowState = System.Windows.WindowState.Normal;
#endif

            Talents = spec;
            Tree1 = tree1;
            Tree2 = tree2;
            Tree3 = tree3;

            SavedTalentSpecList saved = SavedTalentSpec.SpecsFor(spec.GetClass());
            if (saved.Count > 0)
            {
                UpdateCombo.ItemsSource = saved;
                UpdateCombo.SelectedIndex = 0;
            }
            else
            {
                UpdateCombo.IsEnabled = false;
            }
        }
Exemple #2
0
        public SaveTalentSpecDialog(TalentsBase spec, int tree1, int tree2, int tree3)
        {
            InitializeComponent();

#if !SILVERLIGHT
            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            this.WindowState           = System.Windows.WindowState.Normal;
#endif

            Talents = spec;
            Tree1   = tree1;
            Tree2   = tree2;
            Tree3   = tree3;

            SavedTalentSpecList saved = SavedTalentSpec.SpecsFor(spec.GetClass());
            if (saved.Count > 0)
            {
                UpdateCombo.ItemsSource   = saved;
                UpdateCombo.SelectedIndex = 0;
            }
            else
            {
                UpdateCombo.IsEnabled = false;
            }
        }
Exemple #3
0
 public bool Equals(TalentsBase talents)
 {
     if (talents == null || Spec == null)
     {
         return(false);
     }
     return(talents.ToString().Equals(Spec) && Class == talents.GetClass());
 }
Exemple #4
0
 public SavedTalentSpec(String name, TalentsBase talentSpec, int tree1, int tree2, int tree3)
 {
     Name  = name;
     Tree1 = tree1;
     Tree2 = tree2;
     Tree3 = tree3;
     if (talentSpec != null)
     {
         Spec  = talentSpec.ToString();
         Class = talentSpec.GetClass();
     }
 }
        public SaveTalentSpecDialog(TalentsBase spec, int tree1, int tree2, int tree3)
        {
            InitializeComponent();
            Talents = spec;
            Tree1   = tree1;
            Tree2   = tree2;
            Tree3   = tree3;

            SavedTalentSpecList saved = SavedTalentSpec.SpecsFor(spec.GetClass());

            if (saved.Count > 0)
            {
                UpdateCombo.ItemsSource   = saved;
                UpdateCombo.SelectedIndex = 0;
            }
            else
            {
                UpdateCombo.IsEnabled = false;
            }
        }