Example #1
0
 void SetupSecondaryView()
 {
     if (!SecondaryViewContents.OfType <XmlView>().Any())
     {
         var xmlView = new XmlView(generator, this);
         SecondaryViewContents.Add(xmlView);
     }
     if (!SecondaryViewContents.OfType <WpfPreview>().Any())
     {
         var preview = new WpfPreview(loader, this);
         SecondaryViewContents.Add(preview);
     }
 }
Example #2
0
		void SetupSecondaryView()
		{
			if (!SecondaryViewContents.OfType<XmlView>().Any())
			{
				var xmlView = new XmlView(generator, this);
				SecondaryViewContents.Add(xmlView);
			}
			if (!SecondaryViewContents.OfType<WpfPreview>().Any())
			{
				var preview = new WpfPreview(loader, this);
				SecondaryViewContents.Add(preview);
			}
		}