static public PixelArtToolboxForm GetPixelArtToolboxForm(ILog log, INotificator notificator) { if (pixelArtToolboxForm == null) { pixelArtToolboxForm = new PixelArtToolboxForm(log, notificator); pixelArtToolboxForm.Show(); pixelArtToolboxForm.FormClosed += PixelArtToolboxForm_FormClosed; openForms.Add(pixelArtToolboxForm); } return(pixelArtToolboxForm); }
static private void PixelArtToolboxForm_FormClosed(object sender, FormClosedEventArgs e) { pixelArtToolboxForm = null; OpenForm_FormClosed(sender, e); }