예제 #1
0
        private static void Run(string[] args)
        {
            // For now, lets assume the modelstore path is provided as first and only argument. If left out, switch to demo data mode
            MetaDataStore m;

            if (args.Count() > 0)
            {
                string path = args[0];
                m = MetaDataStoreLoader.Load(path);
                System.Console.WriteLine("Finished loading modelstore from " + path);
            }
            else
            {
                m = DemoDataUtil.GetModelStore(3, true);
                System.Console.WriteLine("Demo data modelstore loaded.");
            }

            System.Console.WriteLine("Contained packages: " + m.Packages.Count().ToString());
        }
예제 #2
0
 private void cmdLoadDemoData_Click(object sender, EventArgs e)
 {
     OnMetadataStoreLoaded(DemoDataUtil.GetModelStore(3, true));
 }