Beispiel #1
0
        public RosterView(RosterViewmodel vm)
        {
            DataContext = vm ?? throw new ArgumentNullException("vm");
            vm.Owner    = this;
            this.vm     = vm;

            InitializeComponent();
        }
Beispiel #2
0
        /// <summary> Display guild roster. </summary>
        private void DoRoster()
        {
            // Ensure we have all the data we need
            if (!IsAllDataAvailable())
            {
                ShowError("Guild data has not yet been successfully retrieved.");
                return;
            }

            var vm   = new RosterViewmodel(guild, Members, gameData.Units);
            var view = new RosterView(vm)
            {
                Owner = parent
            };

            view.ShowDialog();
        }