예제 #1
0
        public FormChooseCharacter(CharacterProfilerData characterList)
        {
            InitializeComponent();

            m_characterList = characterList;

            foreach (CharacterProfilerRealm realm in m_characterList.Realms)
            {
                comboBoxRealm.Items.Add(realm.Name);
            }

            comboBoxRealm.SelectedIndex = 0;
            updateCharacterList();
        }
예제 #2
0
        public FormChooseCharacter(CharacterProfilerData characterList)
        {
            InitializeComponent();

            m_characterList = characterList;

            foreach (CharacterProfilerFailedImport error in m_characterList.Errors)
            {
                object[] asRowData = { error.Realm, error.Character, error.Error };
                dataGridFailedImport.Rows.Add(asRowData);
            }

            foreach (CharacterProfilerRealm realm in m_characterList.Realms)
            {
                comboBoxRealm.Items.Add(realm.Name);
            }

            comboBoxRealm.SelectedIndex = 0;
            updateCharacterList();
        }