Exemplo n.º 1
0
 private void LoadPreviewer()
 {
     if (previewerForm == null)
     {
         previewerForm       = new PreviewerForm(Index, ElementType.MineCart);
         previewerForm.Owner = this;
     }
     else
     {
         previewerForm.Reload(Index, ElementType.MineCart);
     }
 }
Exemplo n.º 2
0
 // 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();
 }
Exemplo n.º 3
0
 // 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();
 }