ContainsArgument() public static method

public static ContainsArgument ( string argument ) : bool
argument string
return bool
Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        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);
            }
        }