public ucWizard() { InitializeComponent(); _pages = new List <UserControl>(); _state = new Dictionary <string, string>(); _currentPage = 0; // Check if we should run the wizard in silent mode... if (CommandLineParser.ContainsArgument("/silent")) { _state = CommandLineParser.GetArguments(); } }
public void Start() { if (CommandLineParser.ContainsArgument("/silent")) { for (int i = 0; i < _pages.Count; i++) { if (!ShowPage(i)) { return; } } if (Cancel != null) { Cancel(this, null); } } else { ShowPage(0); } }