38 lines
738 B
C#
38 lines
738 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Voile
|
|
{
|
|
public partial class FirstRunWizard : Form
|
|
{
|
|
public FirstRunWizard()
|
|
{
|
|
InitializeComponent();
|
|
DisplayTabPage(0);
|
|
}
|
|
|
|
private TabPage[] allPages;
|
|
public void DisplayTabPage(int target)
|
|
{
|
|
if (allPages == null)
|
|
{
|
|
allPages = new TabPage[tabControl1.TabPages.Count];
|
|
for (int i = 0; i < tabControl1.TabPages.Count; i++)
|
|
{
|
|
allPages[i] = tabControl1.TabPages[i];
|
|
}
|
|
}
|
|
|
|
tabControl1.TabPages.Clear();
|
|
tabControl1.TabPages.Add(allPages[target]);
|
|
}
|
|
}
|
|
}
|