private OnViewClosing ( object sender, System e ) : void | ||
sender | object | |
e | System | |
return | void |
void OnViewClosing( object sender, System.ComponentModel.CancelEventArgs e )
{
if( !_isClosing )
{
_isClosing = true;
Context.ConfigManager.UserConfiguration.LiveUserConfiguration.SetAction( new Guid( PluginGuidString ), ConfigUserAction.Stopped );
Context.PluginRunner.Apply();
return;
}
else
{
_isClosing = false;
VMIContext = null;
}
}