Ejemplo n.º 1
0
        private void LoadFromCharacterProfiler(object sender, RoutedEventArgs args)
        {
            if (_unsavedChanges)
            {
                NeedToSaveCharacter();
            }
            CharProfLoadDialog charprofLoad = new CharProfLoadDialog();

            charprofLoad.Closed += new EventHandler(charprofLoad_Closed);
            charprofLoad.Show();
        }
Ejemplo n.º 2
0
        private void charprofLoad_Closed(object sender, EventArgs e)
        {
            CharProfLoadDialog cpld = sender as CharProfLoadDialog;

            if (((CharProfLoadDialog)sender).DialogResult.GetValueOrDefault(false))
            {
                Character character = cpld.Character;

                // So we can use that for recall later on what was last used
                Rawr.Properties.RecentSettings.Default.RecentCharProfiler = cpld.TB_FilePath.Text;

                this.Character = character;
            }
        }