private void OKButton_Click(object sender, RoutedEventArgs e) { // TODO: Run Load Character from Profiler action try { CharacterProfilerData characterList = new CharacterProfilerData(TB_FilePath.Text); FormChooseCharacter form = new FormChooseCharacter(characterList); form.Show(); if (form.DialogResult == true) { //StartProcessing(); //BackgroundWorker bw = new BackgroundWorker(); //bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_LoadCharacterProfilerComplete); //bw.DoWork += new DoWorkEventHandler(bw_LoadCharacterProfiler); //bw.RunWorkerAsync(form.Character); new ErrorWindow() { Message = "Not Yet Implemented" }.Show(); } //form.Dispose(); } catch (InvalidDataException ex) { MessageBox.Show("Unable to parse saved variable file: " + ex.Message); } catch (Exception ex) { MessageBox.Show("Error reading saved variable file: " + ex.Message); } }
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) { CB_Realm.Items.Add(realm.Name); } CB_Realm.SelectedIndex = 0; updateCharacterList(); }
private void OKButton_Click(object sender, RoutedEventArgs e) { // TODO: Run Load Character from Profiler action try { CharacterProfilerData characterList = new CharacterProfilerData(TB_FilePath.Text); FormChooseCharacter form = new FormChooseCharacter(characterList); form.Show(); if (form.DialogResult == true) { //StartProcessing(); //BackgroundWorker bw = new BackgroundWorker(); //bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_LoadCharacterProfilerComplete); //bw.DoWork += new DoWorkEventHandler(bw_LoadCharacterProfiler); //bw.RunWorkerAsync(form.Character); Base.ErrorBox eb = new Base.ErrorBox("Load Character from Character Profiler", "Not Yet Implemented"); eb.Show(); } //form.Dispose(); } catch (InvalidDataException ex) { MessageBox.Show("Unable to parse saved variable file: " + ex.Message); Base.ErrorBox eb = new Base.ErrorBox("Load Character from Character Profiler", "Not Yet Implemented"); eb.Show(); } catch (Exception ex) { MessageBox.Show("Error reading saved variable file: " + ex.Message); Base.ErrorBox eb = new Base.ErrorBox("Error reading saved variable file", "Not Yet Implemented"); eb.Show(); } }
public FormChooseCharacter(CharacterProfilerData characterList) { InitializeComponent(); #if !SILVERLIGHT this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; this.WindowState = System.Windows.WindowState.Normal; #endif 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) { CB_Realm.Items.Add(realm.Name); } CB_Realm.SelectedIndex = 0; updateCharacterList(); }