private void EditCharacters()
        {
            var vm  = new AccountManagement.EditCharactersViewModel(_accountManager);
            var win = new AccountManagement.EditCharactersWindow(vm);

            win.Show();
        }
Exemple #2
0
        public EditCharactersWindow(EditCharactersViewModel viewModel)
        {
            if (viewModel == null)
            {
                throw new ArgumentNullException("viewModel", "Null view model passed to EditCharactersWindow");
            }

            InitializeComponent();

            this.DataContext = viewModel.CharacterList;
        }
Exemple #3
0
        public EditCharactersWindow(EditCharactersViewModel viewModel)
        {
            if (viewModel == null)
            {
                throw new ArgumentNullException("viewModel", "Null view model passed to EditCharactersWindow");
            }

            InitializeComponent();

            this.DataContext = viewModel.CharacterList;

            ThwargLauncher.AppSettings.WpfWindowPlacementSetting.Persist(this);
        }