|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TestWF {
[System.Runtime.InteropServices.ComVisible(false)]
public partial class Workflow1 : System.Activities.Activity, System.ComponentModel.ISupportInitialize {
private bool _contentLoaded;
public Workflow1() {
this.InitializeComponent();
}
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void InitializeComponent() {
if ((this._contentLoaded == true)) {
return;
}
this._contentLoaded = true;
string resourceName = this.FindResource();
System.IO.Stream initializeXaml = typeof(Workflow1).Assembly.GetManifestResourceStream(resourceName);
System.Xml.XmlReader xmlReader = null;
System.Xaml.XamlReader reader = null;
System.Xaml.XamlObjectWriter objectWriter = null;
try {
System.Xaml.XamlSchemaContext schemaContext = XamlStaticHelperNamespace._XamlStaticHelper.SchemaContext;
xmlReader = System.Xml.XmlReader.Create(initializeXaml);
System.Xaml.XamlXmlReaderSettings readerSettings = new System.Xaml.XamlXmlReaderSettings();
readerSettings.LocalAssembly = System.Reflection.Assembly.GetExecutingAssembly();
readerSettings.AllowProtectedMembersOnRoot = true;
reader = new System.Xaml.XamlXmlReader(xmlReader, schemaContext, readerSettings);
System.Xaml.XamlObjectWriterSettings writerSettings = new System.Xaml.XamlObjectWriterSettings();
writerSettings.RootObjectInstance = this;
writerSettings.AccessLevel = System.Xaml.Permissions.XamlAccessLevel.PrivateAccessTo(typeof(Workflow1));
objectWriter = new System.Xaml.XamlObjectWriter(schemaContext, writerSettings);
System.Xaml.XamlServices.Transform(reader, objectWriter);
}
finally {
if ((xmlReader != null)) {
((System.IDisposable)(xmlReader)).Dispose();
}
if ((reader != null)) {
((System.IDisposable)(reader)).Dispose();
}
if ((objectWriter != null)) {
((System.IDisposable)(objectWriter)).Dispose();
}
}
}
private string FindResource() {
string[] resources = typeof(Workflow1).Assembly.GetManifestResourceNames();
for (int i = 0; (i < resources.Length); i = (i + 1)) {
string resource = resources[i];
if ((resource.Contains(".Workflow1.g.xaml") || resource.Equals("Workflow1.g.xaml"))) {
return resource;
}
}
throw new System.InvalidOperationException("Resource not found.");
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033")]
void System.ComponentModel.ISupportInitialize.BeginInit() {
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033")]
void System.ComponentModel.ISupportInitialize.EndInit() {
this.InitializeComponent();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.