private void CallBackStop(IAsyncResult r)
{
if (IsDisposed) return;
_stopDel.EndInvoke(r);
this.Invoke((Action)delegate
{
this.Cursor = Cursors.Default;
panelBottom.Enabled = true;
this.TransparencyKey = Color.LimeGreen;
this.Invalidate();
panelBottom.Visible = true;
panelTransparent.Visible = true;
#region If the user wants to edit the frames or not
if (Settings.Default.allowEdit)
{
//To return back to the last form size after the editor
_lastSize = this.Size;
_stage = Stage.Editing;
btnMaximize.Enabled = true;
btnMinimize.Enabled = true;
this.TopMost = false;
EditFrames();
ShowHideButtons(true);
}
else
{
_lastSize = this.Size; //Not sure why this is here
Save();
Processing.Page.Dispose();
}
#endregion
});
}