Exemplo n.º 1
0
        public void Initialize()
        {
            profile              = DataGenerator.GenerateProfile();
            category_controller  = new CategoryController(profile);
            graph_data_generator = new GraphDataGenerator(profile);
            script_host          = new ScriptHost(profile, category_controller, this);

            Posts    = new ObservableCollection <Post>(profile.AggregatedPosts());
            Root     = CategoryViewModel.Create(profile.RootCategory);
            Accounts = new ObservableCollection <Account>(profile.Accounts);
            Title    = "Categorization engine [" + profile.Name + "]";

            SelectedPost = Posts.FirstOrDefault();
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            profile = DataGenerator.GenerateProfile();
            category_controller = new CategoryController(profile);
            graph_data_generator = new GraphDataGenerator(profile);
            script_host = new ScriptHost(profile, category_controller, this);

            Posts = new ObservableCollection<Post>(profile.AggregatedPosts());
            Root = CategoryViewModel.Create(profile.RootCategory);
            Accounts = new ObservableCollection<Account>(profile.Accounts);
            Title = "Categorization engine [" + profile.Name + "]";

            SelectedPost = Posts.FirstOrDefault();
        }