public frmImagePreview ShowImagePreview() { if (ImagePreview == null || ImagePreview.IsDisposed) { ImagePreview = new frmImagePreview(); ImagePreview.Show(dockPanel, DockState.Document); } ImagePreview.Activate(); return(ImagePreview); }
public void CloseMainWindows() { ModExplorer?.Close(); ModExplorer = null; Output?.Close(); Output = null; Console?.Close(); Console = null; if (Welcome != null) { Welcome?.Close(); Welcome = new frmWelcome(Window); } ImportUtility?.Close(); ImportUtility = null; RadishUtility?.Close(); RadishUtility = null; ScriptPreview?.Close(); ScriptPreview = null; ImagePreview?.Close(); ImagePreview = null; FormModKit?.Close(); FormModKit = null; }