示例#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);
     }
 }
示例#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);
			}
		}