OSAE.UI.Controls.AddControlStateImage.NotifyParentFinished C# (CSharp) Method

NotifyParentFinished() private method

Let the hosting contol know that we are done
At present it tells the parent to close, this could later be altered to have a event that fires to the parent allowing them to decide what to do when the control is finished. If the control is being hosted in an element host this will have no affect as the parent is the element host and not the form.
private NotifyParentFinished ( ) : void
return void
        private void NotifyParentFinished()
        {
            // Get the window hosting us so we can ask it to close
            Window parentWindow = Window.GetWindow(this);
            parentWindow.Close();
        }