// Previewer private void openPreviewer_Click(object sender, EventArgs e) { if (previewerForm == null || !previewerForm.Visible) { previewerForm = new PreviewerForm(Index, ElementType.BattleScript); } else { previewerForm.Reload(Index, ElementType.BattleScript); } previewerForm.Show(); previewerForm.BringToFront(); }
// Opening private void OpenPreviewerForm() { if (previewerForm == null || !previewerForm.Visible) { previewerForm = new PreviewerForm(set.SelectedIndex, Index, true); previewerForm.Owner = this; } else { previewerForm.Reload(set.SelectedIndex, Index, true); } previewerForm.Show(); previewerForm.BringToFront(); }