mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-18 02:21:33 +00:00
55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
namespace MacroSamples_MEP
|
|
{
|
|
|
|
public sealed partial class ThisApplication : Autodesk.Revit.UI.Macros.ApplicationEntryPoint
|
|
{
|
|
|
|
public event System.EventHandler Startup;
|
|
|
|
public event System.EventHandler Shutdown;
|
|
|
|
///
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
|
private void OnStartup()
|
|
{
|
|
}
|
|
|
|
///
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
|
protected override void FinishInitialization()
|
|
{
|
|
base.FinishInitialization();
|
|
this.OnStartup();
|
|
this.InternalStartup();
|
|
if ((this.Startup != null))
|
|
{
|
|
this.Startup(this, System.EventArgs.Empty);
|
|
}
|
|
}
|
|
|
|
///
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
|
protected override void OnShutdown()
|
|
{
|
|
if ((this.Shutdown != null))
|
|
{
|
|
this.Shutdown(this, System.EventArgs.Empty);
|
|
}
|
|
base.OnShutdown();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
|
protected override string PrimaryCookie
|
|
{
|
|
get
|
|
{
|
|
return "ThisApplication";
|
|
}
|
|
}
|
|
}
|
|
}
|