Beispiel #1
0
        public EveUpdaterWindow() : base()
        {
            this.InitializeComponent();

            // Initialize the Data Source ViewModel
            this.viewModel   = new EveUpdaterWindowViewModel(new EveUpdaterWindowService());
            this.DataContext = this.viewModel;
        }
Beispiel #2
0
        /* Methods */

        /// <inheritdoc />
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (values == null || values.Length < 2)
            {
                return(null);
            }

            CategoryListEntry categoryEntry = values[0] as CategoryListEntry;

            if (categoryEntry == null)
            {
                return(null);
            }

            EveUpdaterWindowViewModel viewModel = values[1] as EveUpdaterWindowViewModel;

            if (viewModel == null)
            {
                return(null);
            }

            return(viewModel.LoadGroupsForCategory(categoryEntry.Value));
        }